-
Notifications
You must be signed in to change notification settings - Fork 338
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
Rez env seems to mangle the PATH #1888
Comments
The value of some items in your rez-config will be important to inspect to provide any analysis, for example, |
Makes sense. Here it is - it is 99.9% default values BTW, I tried this on CentOS-7 and it did the same thing, but differently - the PATH was messed up in different ways. |
Is there anything special in the package.py's for your implicit packages? e.g. your linux/arch/rocky/centos etc packages that are being used as your implicits? The first thing I can identify, is that the last entry in the "after" is correct because you have |
Hey. No, I checked that earlier - none of those implicit packages do anything - they don't even have a |
We have been chasing something related to the PATH environment variable, which is seemingly manipulated in a non-obvious way as Rez sets up the environment. To create the simplest demonstration of this, I opened a fresh shell and printed the PATH variable. Then I ran
rez env
with no packages at all, and inspect the PATH - it has extra entries added, and has rearranged the order of others.Environment
To Reproduce
Here is the before and after.
Before
then
Expected behavior
What I would expect is for the PATH to be identical to what it was before I ran
rez env
, because no packages were loaded that would modify it.Actual behavior
See the example. Notice that '.' is in the path, when it wasn't before, and that many of the paths have been reordered. And
laika/dist/bin
is missing completely.The text was updated successfully, but these errors were encountered: