Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: expose temp file with environment variables in Windows #252

Merged
merged 5 commits into from
Oct 2, 2024

Conversation

lucaspin
Copy link
Contributor

@lucaspin lucaspin commented Oct 1, 2024

https://github.com/renderedtext/tasks/issues/6922

Issue

Since we don't need the temporary file containing the environment variables in Windows (no PTY), we are not creating that file. That is an issue for Windows debug jobs which cannot access those values in any way.

Solution

Create the file for Windows jobs too. The file will be created in the $env:Temp directory, usually C:\Users\<username>\AppData\Local\Temp. The file is created with a .ps1 extension and uses the PowerShell format for defining environment variables, so the user can "source" it as well.

Note: source is not available in PowerShell, but you can do something like . <script-name>.ps1

@lucaspin lucaspin merged commit 6a53759 into master Oct 2, 2024
3 checks passed
@lucaspin lucaspin deleted the expose-env-file-for-windows branch October 2, 2024 11:19
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