-
Notifications
You must be signed in to change notification settings - Fork 340
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
Alias in powershell error #1728
Comments
I wonder if we can update this
from
to
|
I can confirm that replacing the line above does indeed work. |
I think replacing As for the I would be curious to know if replacing |
So actually this is a little outdated because we did, in fact, replace |
If I set an alias in my package.py as follows :
The alias errors when entering the rez env for the package.
Before you ask, this approach to creating an alias, which points to a wrapper launcher batch script, allows me to store the alias used to launch the application in an environment variable, which I can then later use to launch the same application via the same rez alias when jobs are executed on deadline. There may be better approaches to this, which may make this issue a moot point.
The batch script "launcher.bat" is as follows:
It takes the first argument and stores it in REZ_USED_ALIAS, then executes the remaining arguments to launch the application.
Environment
To Reproduce
rez env -ci
rez env sg_desktop
Expected behavior
I asked chatgpt for a working alias, and it came up with this, which works :
This may be a breaking change for rez to implement as a new way of forming aliases under powershell, but it certainly appears to work for me if I create this alias manually in ps.
Actual behavior
Looking at the source of the error, rez appears to be defining the alias as :
This alias raises the error indicated in the description above.
The text was updated successfully, but these errors were encountered: