Skip to content

Conversation

@bradhe
Copy link
Contributor

@bradhe bradhe commented Nov 13, 2025

These environment variables are needed for subprocesses to do things like create lock files and all that!

These environment variables are needed for subprocesses to do things like create lockfiles and all that!
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR adds support for temporary directory environment variables (TEMP and TMP) to the environment normalization function, ensuring that Python subprocesses can properly create temporary files and lock files.

  • Adds TEMP environment variable passthrough for Python subprocess compatibility
  • Adds TMP environment variable passthrough to handle Windows environment variable variations

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Contributor

@konstantinoscs konstantinoscs left a comment

Choose a reason for hiding this comment

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

LGTM. A useful comment from copilot?


// Apparently, according to some random person on Stack Overflow, sometimes the var can be
// TEMP and sometimes it can be TMP. So uh...let's just grab both just in case.
let tmp = std::env::var("TMP").unwrap_or_default();
Copy link
Contributor

Choose a reason for hiding this comment

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

I appreciate the honesty. We should probably try to verify this with some official documentation....somewhere?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I spent 5 minutes trying to find something that wasn't Stack Overflow or Reddit posts complaining about it. Generally, seems like it dates back to DOS. There's some basic docs here that reference both lol https://learn.microsoft.com/en-us/windows/deployment/usmt/usmt-recognized-environment-variables

@bradhe bradhe merged commit 8076d88 into develop Nov 13, 2025
5 checks passed
@bradhe bradhe deleted the tasks/fix-windows-bug-invoking-runs branch November 13, 2025 22:32
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.

3 participants