Skip to content

Windows: Stop using PSScriptRoot#1315

Merged
kwryankrattiger merged 1 commit intospack:mainfrom
johnwparent:win-config-switch-psscriptroot-for-home
Mar 11, 2026
Merged

Windows: Stop using PSScriptRoot#1315
kwryankrattiger merged 1 commit intospack:mainfrom
johnwparent:win-config-switch-psscriptroot-for-home

Conversation

@johnwparent
Copy link
Contributor

In some contexts PSScriptRoot is not set. So far given usage it appears to be safe, but in upcoming Gitlab updates, and for other runner configurations, this value isn't set during pre-script, and will break the pre-build behavior and prevent proper upload.

Use HOME which is always set and writable

In some contexts PSScriptRoot is not set. So far given usage it appears to be safe, but in upcoming Gitlab updates, and for other runner configurations, this value isn't set during pre-script, and will break the pre-build behavior and prevent proper upload.

Use HOME which is always set and writable

Signed-off-by: John Parent <john.parent@kitware.com>
@johnwparent
Copy link
Contributor Author

Can't tag reviewers so @zackgalbreath @kwryankrattiger

Copy link
Collaborator

@kwryankrattiger kwryankrattiger left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@kwryankrattiger kwryankrattiger merged commit 16a7f2c into spack:main Mar 11, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants