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

ensure $TEMP and $TMP environment variables exist #11799

Merged
merged 2 commits into from
Mar 12, 2025

Conversation

brettfo
Copy link
Contributor

@brettfo brettfo commented Mar 12, 2025

Windows exposes two environment variables, %TEMP% and %TMP% and those are commonly used in .targets files, but since those variables don't exist in the docker image, those steps can fail.

This PR simply creates a directory /tmp/dependabot and sets both environment variables to that location. I've manually verified that those locations are writable by the dependabot user.

Fixes #11595.

@brettfo brettfo requested a review from a team as a code owner March 12, 2025 17:20
@github-actions github-actions bot added the L: dotnet:nuget NuGet packages via nuget or dotnet label Mar 12, 2025
@kbukum1 kbukum1 merged commit 34ead18 into main Mar 12, 2025
100 checks passed
@kbukum1 kbukum1 deleted the dev/brettfo/nuget-updater-tmp branch March 12, 2025 18:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
L: dotnet:nuget NuGet packages via nuget or dotnet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

NuGet updater should specify a value for $TMP and $TEMP
3 participants