boostorg / release-tools

5 stars 24 forks source link

windowsdocs.ps1 refreshenv #43

Closed sdarwin closed 1 year ago

sdarwin commented 1 year ago

An interesting bug. windowsdocs.ps1 installs windows packages with chocolatey. To use the packages immediately you have to run refreshenv, which updates PATH. However, it can remove path entries as well as add path entries. If it removes the PATH to cl.exe then b2 may fail to build. So, after running refreshenv, put back the previous PATH entries.