-
Notifications
You must be signed in to change notification settings - Fork 244
[Bug]: Error running devbox shell in environment with exported Bash function #995
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
same here any work around? |
Apparently, since the exported functions are available inside the devbox environment, the workaround is just to ignore the error. I'ld still love it for the error not to appear, though, as I wasted quite a bit of time trying to figure out what was wrong with my env. |
@albx79 , same thing, I spent about a few hours trying to figure out what went wrong
For some reason devbox take working function from my env
and create this
Debug info
|
Look like it broke init_hook, it not running anymore |
plugins (corepack in my case) fails to execute they hooks too |
As I understand this code has this form intentionally, but I still can't figure out how to fix the error |
When i run
It doesn't seem to impact anything -- as other folks above have said, or is it really harmless? -- but it makes it hard for me to convince my team we should use this together. Is there a flag or variable I can set in the dotenv.json file to bypass parsing or evaluating .bashrc or .bash_profile functions? Or is that misguided... that's part of devbox's charm I suppose when it all works smoothly? |
I already mentioned that it breaks running init scripts. In other words, everything that's written in
Not working because of crash |
For a Red Hat system, this causes problems because of |
Current Behavior (bug)
To reproduce, run these commands:
This error appears:
Despite the error, the
foo
function is still available in the shell.Expected Behavior (fix)
The error should not appear.
Additional context
My
devbox version -v
:The text was updated successfully, but these errors were encountered: