desnudopenguino has quit [Ping timeout: 252 seconds]
rvalue- has joined #ruby
rvalue has quit [Ping timeout: 265 seconds]
rvalue- is now known as rvalue
FetidToot1 has joined #ruby
FetidToot has quit [Read error: Connection reset by peer]
FetidToot1 is now known as FetidToot
gvg_ has quit [Ping timeout: 260 seconds]
grenierm has joined #ruby
jmjl has quit [Remote host closed the connection]
jmjl has joined #ruby
mange has quit [Remote host closed the connection]
konsolebox has quit [Ping timeout: 265 seconds]
cappy has quit [Quit: Leaving]
konsolebox has joined #ruby
gvg has joined #ruby
Linux_Kerio has joined #ruby
Linux_Kerio has quit [Read error: Connection reset by peer]
Bounga has quit [Ping timeout: 245 seconds]
graemefawcett has quit [Ping timeout: 245 seconds]
slondr has quit [Ping timeout: 245 seconds]
graemefawcett has joined #ruby
Bounga has joined #ruby
slondr has joined #ruby
hwpplayer1 has joined #ruby
dminuoso has joined #ruby
<dminuoso>
Hi. I have a package build by nix in a way that I cannot trivially apply a patch. But I can vendor the Gemfile, is there a nice way to apply a patch from a Gemfile?
<dminuoso>
Or should I just put the modified package on a git repository and just specify `gem "foo", git: ....` ?
user71 has joined #ruby
konsolebox has quit [Ping timeout: 250 seconds]
patrick has quit [Remote host closed the connection]
patrick has joined #ruby
hwpplayer1 has quit [Remote host closed the connection]
Linux_Kerio has joined #ruby
Linux_Kerio has quit [Read error: Connection reset by peer]
hwpplayer1 has quit [Quit: ERC 5.5.0.29.1 (IRC client for GNU Emacs 29.4)]
freesteph has joined #ruby
<freesteph>
hello everyone
<freesteph>
I'm running into that weird thing again where `bundle install` fails because there are some missing gems
<freesteph>
a weird catch 22
<freesteph>
it's because my env contains `RUBYOPT=-r/usr/local/lib/ruby/3.3.0/bundler/setup`
<freesteph>
and that script runs `Bundler.ui.silence { Bundler.setup }`
<freesteph>
it's very confusing as an end-user
<freesteph>
who is setting that RUBYOPT and why? how is one supposed to walk out of this endless loop of "try to install gems, which are missing and therefore make Bundler crash"
<o0x1eef>
RUBYOPT is not normally set. Something in your environment must be doing that. Try: 'fgrep -rn RUBYOPT ~'. You can try 'unset RUBYOPT' and see if that helps as well. The effect of that ${RUBYOPT} is that your code will always run within bundler.
<freesteph>
thank you
<freesteph>
it's from the Docker image, where I grepped but couldn't find mention of RUBYOPT either
trillion_exabyte has quit [Ping timeout: 260 seconds]
trillion_exabyte has joined #ruby
desnudopenguino has joined #ruby
<adam12>
Bundler will set `RUBYOPT` for `bundle exec`
crespire has quit [Killed (NickServ (GHOST command used by crespire1))]
crespire1 has joined #ruby
crespire has joined #ruby
<o0x1eef>
TIL :)
<freesteph>
for reasons beyond me I cannot reproduce the bug with a clean repo/docker iamge
<freesteph>
image
<freesteph>
I'm so confused
crespire1 has quit [Ping timeout: 248 seconds]
crespire has quit [Killed (NickServ (GHOST command used by crespire1))]
crespire1 has joined #ruby
<freesteph>
OK I think I know
<freesteph>
I was trying to debug the installation of the gem "debugger" when the actual gem is called "debug", so that has now cost me half a day of work but that's a different story
<freesteph>
anyway this installation fails because "debugger" went obsolete a while ago
<freesteph>
but I'm wondering if that install was polluting the ENV with these variables
<freesteph>
though I guess you also have `bundler/setup` in yours
<freesteph>
goddammit
crespire has joined #ruby
<freesteph>
OK dig this
<freesteph>
if I run a shell with `docker compose run` it gives me a different shell than `docker run`
<freesteph>
the former being setup with RUBYOPT poitning to `bundler/debug`, but the latter one without which makes `bundle install` work no problem
crespire1 has quit [Ping timeout: 244 seconds]
<freesteph>
OH MY GOD
<freesteph>
I got it
<freesteph>
right
<freesteph>
Jesus
<freesteph>
I'm an idiot is the simple answer
<freesteph>
my alias for running a command is: $(DOCKER-RUN) web $(BUNDLE-EXEC) bash
<freesteph>
so I'm running `bash` VIA Bundler, which somehow works and gives us this strange situation
<freesteph>
sorry for wasting everybody's time
* freesteph
feels relieved anyway
<o0x1eef>
Congrats :)
brokkoli_origin has quit [Ping timeout: 252 seconds]