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
I have a fairly simple manifest using chocolatey/chocolatey and puppetlabs/powershell - when I install a component that updates the Machine Path (i.e. [System.Environment]::GetEnvironmentVariable("Path","Machine")), and subsequently issue an Exec which depends on that, it fails because Powershell doesn't see the updated Path.
I've tried setting path => $::path, path => $([System.Environment]::GetEnvironmentVariable("Path","Machine") + ";" + [System.Environment]::GetEnvironmentVariable("Path","User")) and various other permutations to try to force an up-to-date Path being used, to no avail.
Any magic to make this work? Thanks!
The text was updated successfully, but these errors were encountered:
I have a fairly simple manifest using
chocolatey/chocolatey
andpuppetlabs/powershell
- when I install a component that updates the Machine Path (i.e.[System.Environment]::GetEnvironmentVariable("Path","Machine")
), and subsequently issue anExec
which depends on that, it fails because Powershell doesn't see the updated Path.I've tried setting
path => $::path
,path => $([System.Environment]::GetEnvironmentVariable("Path","Machine") + ";" + [System.Environment]::GetEnvironmentVariable("Path","User"))
and various other permutations to try to force an up-to-date Path being used, to no avail.Any magic to make this work? Thanks!
The text was updated successfully, but these errors were encountered: