You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hope you're all well! First off, thanks for a great library, have really enjoyed getting onboard with it!
We've noticed a small bug when trying to create packages that contain environment variables with brackets in them and launching it in powershell. Here is a small repro case:
name = 'testpackage'
version = '1.0.0'
requires = [
'platform-windows'
]
build_command = False
def commands():
env['ENVVARWITH(x86)'] = 'This_breaks_powershell'
Running it with: rez build -i & rez-env testpackage --shell=powershell gives the following error:
[...snip...]
Temp\rez_context_68oyvs1b\context.ps1:53 char:16
+ $Env:ENVVARWITH(x86) = "This_breaks_powershell"
+ ~
Unexpected token '(' in expression or statement.
Looks like using the alternative syntax to set environment variables should work (although I haven't tried it):
Set-Item "env:ENVVARWITH(x86)" "This is fine"
dir env:
Name Value
---- -----
ALLUSERSPROFILE C:\ProgramData
[...snip...]
ENVVARWITH(x86) This is fine
Will look to get a PR over to you ASAP.
The text was updated successfully, but these errors were encountered:
Hi All,
Hope you're all well! First off, thanks for a great library, have really enjoyed getting onboard with it!
We've noticed a small bug when trying to create packages that contain environment variables with brackets in them and launching it in powershell. Here is a small repro case:
Running it with:
rez build -i & rez-env testpackage --shell=powershell
gives the following error:Looks like using the alternative syntax to set environment variables should work (although I haven't tried it):
Will look to get a PR over to you ASAP.
The text was updated successfully, but these errors were encountered: