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
{{ message }}
Repository navigation
Windows: cmd.run doesn't honor PATH anymore after update from 2018.3.4 to 2019.2.3 #56199
AluminiumRelease Post Mg and Pre SiRegressionThe issue is a bug that breaks functionality known to work in previous releases.Windowsbugbroken, incorrect, or confusing behavior
And you have verified that C:\Python27\Scripts\easy_install.exe or C:\Python27\easy_install.exe does exist, right? (or that it's somewhere else on the path)?
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
If this issue is closed prematurely, please leave a comment and we will gladly reopen the issue.
changed the title [-]Windows: cmd.run doesn't honor PATH anmore after update from 2018.3.4 to 2019.2.3[/-][+]Windows: cmd.run doesn't honor PATH anymore after update from 2018.3.4 to 2019.2.3[/+]on Jun 15, 2020
I believe I found the reason. Something(tm) reg. environment variable handling seems to have changed to being case-sensitive on Windows minions now. If I use
- env:
- Path: ...
instead of
- env:
- PATH: ...
in cmd.run it works on Windows minions running 3000.3. Please update the documentation accordingly.
Hey @dhs-rec so I commented on the other ticket, but I think this ticket is still applicable.
For the case of using env, I think salt needs to be able to handle $Path and I may be wrong, but I don't think it does currently (seems like regression as is the case if it worked once in 2018.3.4)
For the case of using prepend_path, salt definitely can't handle that right now as shown in your other ticket and confirmed.
Does that sound like it sums up what's going on here?
Nearly. In 2018.3.4 it worked using PATH, which stopped working in 2019.2.x in favour of Path (which is also what any Windows command shows). But anyway, if Salt is supposed to access env vars in a case-sensitive manner even on Windows now, I'm fine with that. It just needs to be documented.
AluminiumRelease Post Mg and Pre SiRegressionThe issue is a bug that breaks functionality known to work in previous releases.Windowsbugbroken, incorrect, or confusing behavior
Activity
waynew commentedon Feb 21, 2020
And you have verified that
C:\Python27\Scripts\easy_install.exeorC:\Python27\easy_install.exedoes exist, right? (or that it's somewhere else on the path)?dhs-rec commentedon Feb 24, 2020
That's what
is for. And downgrading Salt makes it work again.
stale commentedon Apr 9, 2020
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
If this issue is closed prematurely, please leave a comment and we will gladly reopen the issue.
twangboy commentedon Apr 17, 2020
Bad stale bot
dhs-rec commentedon Jun 10, 2020
Any news here?
[-]Windows: cmd.run doesn't honor PATH anmore after update from 2018.3.4 to 2019.2.3[/-][+]Windows: cmd.run doesn't honor PATH anymore after update from 2018.3.4 to 2019.2.3[/+]dhs-rec commentedon Jun 15, 2020
I believe I found the reason. Something(tm) reg. environment variable handling seems to have changed to being case-sensitive on Windows minions now. If I use
instead of
in
cmd.runit works on Windows minions running 3000.3. Please update the documentation accordingly.1 remaining item
sagetherage commentedon Jun 25, 2020
let's look at this as we enter planning for the next release likely this will need some docs as noted here: #57706 (comment)
xeacott commentedon Feb 2, 2021
Hey @dhs-rec so I commented on the other ticket, but I think this ticket is still applicable.
For the case of using
env, I think salt needs to be able to handle$Pathand I may be wrong, but I don't think it does currently (seems like regression as is the case if it worked once in 2018.3.4)For the case of using
prepend_path, salt definitely can't handle that right now as shown in your other ticket and confirmed.Does that sound like it sums up what's going on here?
dhs-rec commentedon Feb 2, 2021
Nearly. In 2018.3.4 it worked using
PATH, which stopped working in 2019.2.x in favour ofPath(which is also what any Windows command shows). But anyway, if Salt is supposed to access env vars in a case-sensitive manner even on Windows now, I'm fine with that. It just needs to be documented.