-
Notifications
You must be signed in to change notification settings - Fork 791
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
Unknown command when running Homebrew test #794
Comments
Thanks for reporting @dnicolson If the Can you perform a test of this? We should also have a test case for this since we have many Homebrew users. |
Setting the There is a predefined list (Java, Go, Rust, CURL) of environment variables that are included in the Homebrew test environment. Adding This is only an issue with locally developing Homebrew |
asdf only relies upon Can you ensure your test is with
We should document this, yes, but I would like to investigate and understand the root cause completely |
I tried setting The environment variables seem to be ignored in the test sandbox. Only by manually adding |
But those results were the |
Running |
Sorry, I wasn't very clear. In the Homebrew test environment, where you added |
Running
|
Okay then, seems like this is going to be an annoying issue to document. So what workarounds should we document that will allow users to get |
More investigation would be needed on how the Homebrew test environment works. I simply uninstalled |
Hardly an ideal solution. Interesting that Would you consider me adding this to the Homebrew caveats Issue a resolution for this Issue and thus able to be closed? [Edit]: added to #785 (Common Homebrew Issues) |
Sure, I think that's the best outcome for now. |
Is there any solution to this? I also run into the same issue if I want to run my cloud functions locally: Edit |
Describe the bug
Running Homebrew tests that require binaries managed by
asdf
can fail, in this instance with this message:unknown command: node. Perhaps you have to reshim?
This appears to be because in the test environment the
HOME
environment variable is changed by Homebrew. It appears as thoughasdf
depends on this.Homebrew Node.js installations and
nvm
do not have this problem, but as mentioned in #785 maybe this is unavoidable and should just be added to the Common Homebrew Issues section?To Reproduce
Expected behavior
The test to run.
Actual behavior
The
node
command was not found.The text was updated successfully, but these errors were encountered: