Closed sandstrom closed 1 year ago
I'll try to dig into this soon…hadn't heard of direnv to be honest, and I should mention our recommended installation approach is to use rbenv.
Sounds great!
As mentioned above, maybe we can just skip the bundle exec
prefix?
But if some scenarios need it, then a command line flag or config value may be better. For example it could be frontend-runner-prefix
or similar. Which one could then set to nothing to clear it. Or replace with something other than bundle exec
, if needed.
@jaredcwhite Sorry for persistent asking, but just wanted to see if you have any thoughts on this?
We're closing in on our middleman -> bridgetown migration, and this is one of the blockers (we have a manual hack in place now, via a private fork).
As mentioned above, to me it seems like it should be fine to simply drop the bundle exec
prefix. Since the outer invocation would already be running via bundle exec
, any inner child-process invocation should inherit env etc from the parent process.
Had the same issue (but using asdf version manager), but just updating to Ruby 3.0.x seemed to have fixed the issue with my environment .
@zealot128 Thanks, we'll try it out and see if that solves it under our scenario too.
@zealot128 I've checked, and 3.0 doesn't solve this for us. To be honest, I don't really see how this would be a ruby version concern. I think it's occurring at the shell-level.
@jaredcwhite Would you be open to a PR where we remove bundle exec
from this file:
https://github.com/bridgetownrb/bridgetown/blob/v1.1.0/bridgetown-core/lib/bridgetown-core/tasks/bridgetown_tasks.rake#L15
I don't understand why bundle exec
is called here. In my view, it's better to apply bundle exec
to the outer call, for example bundle exec bridgetown start
.
@sandstrom That does seem to be the right idea…I went ahead and created a PR so I can test across a few different environments. Should work to get released as part of v1.2.
Sounds great!
Bridgetown Version: 1.1.0
To Reproduce
I've added a repo which should be sufficient to reproduce this error: https://github.com/sandstrom/bridgetown-bug-repro1
But basically the steps are:
bin/bridgetown start
.Current behavior
Expected behavior
Frontend should run.
Workaround fix
It works if I remove the characters
bundle exec
from this line:https://github.com/bridgetownrb/bridgetown/blob/main/bridgetown-core/lib/bridgetown-core/tasks/bridgetown_tasks.rake#L15
Thoughts
Is the bundle exec prefix really needed here? For us it's fine to omit it, but not sure if that goes for everyone.
Computing environment (please complete the following information):