-
-
Notifications
You must be signed in to change notification settings - Fork 34
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
Wrong arguments are passed to machete when the process is launched from within rust #62
Comments
Thanks for opening an issue. I can't reproduce this on Linux using either zsh or bash. Which OS and terminal are you using, out of curiosity, please? |
bash on PopOs. |
Ah, I actually manage to reproduce it today on Linux (yesterday I've tried on Mac). So it seems the code trying to figure out whether the command is being run independently ( |
It's heuristics all the way... Currently we look at environment variables to determine whether we're running as a
If we're running under cargo, then we'll skip the first argument (which is Now with the example program you've passed, the heuristic fails because I think there's no proper way to fix this directly in cargo-machete:
Let me know if you have any other ideas of ways to fix this in cargo-machete. |
When the machete process is launched from within another rust script, like it does in our ci tool, it seems to receive the wrong arguments. I made this little script that reproduces it.
When running I get
The text was updated successfully, but these errors were encountered: