`mage build` requires admin rights on windows
Closed this issue · 1 comments
ludfjig commented
Describe the bug
A clear and concise description of what the bug is.
Running mage build
in PowerShell (non-admin) on windows results in "Access denied". For some reason, the temp folders are created in C:\WINDOWS\ which is a weird place and should be changed.
PS C:\Users\lliljenberg\dev\porter> mage build
error creating temp directory: mkdir C:\WINDOWS\porter188805143: Access is denied.
error creating temp directory: mkdir C:\WINDOWS\porter188805143: Access is denied.
error creating temp directory: mkdir C:\WINDOWS\porter739671479: Access is denied.
error creating temp directory: mkdir C:\WINDOWS\porter905244407: Access is denied.
error creating temp directory: mkdir C:\WINDOWS\porter501410611: Access is denied.
error creating temp directory: mkdir C:\WINDOWS\porter614105515: Access is denied.
error creating temp directory: mkdir C:\WINDOWS\porter739671479: Access is denied.
error creating temp directory: mkdir C:\WINDOWS\porter905244407: Access is denied.
error creating temp directory: mkdir C:\WINDOWS\porter501410611: Access is denied.
error creating temp directory: mkdir C:\WINDOWS\porter614105515: Access is denied.
error creating temp directory: mkdir C:\WINDOWS\porter229574723: Access is denied.
error creating temp directory: mkdir C:\WINDOWS\porter229574723: Access is denied.
Error: running "bin\porter mixin install terraform --version canary --url=" failed with exit code 1
To Reproduce
Steps to reproduce the behavior:
- Run
mage build
in non-admin PS promp.
Expected behavior
Should work without elevated prompt
Porter Command and Output
$ porter [e.g. install --param foo=bar --credential-set azure]
lots of output
Version
main branch
ludfjig commented
Seems to be flake, can't reproduce