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

BaseDirLayoutRenderer - Improve FixTempDir on Linux when TMPDIR is not set #3921

Merged
merged 1 commit into from
May 6, 2020

Conversation

snakefoot
Copy link
Contributor

@snakefoot snakefoot commented Apr 23, 2020

See GetTempPath on Linux (Uses /tmp/ as only fallback):

https://github.com/dotnet/coreclr/blob/6ba74dc2a7194f8d6c86c3aeab572a074ef645c8/src/mscorlib/shared/System/IO/Path.Unix.cs#L153

See single file publish on Linux (Uses /var/tmp/ as first fallback):

https://github.com/dotnet/core-setup/blob/074c3bece80ca300e2f9d053b18748b6537d6f67/src/corehost/common/pal.unix.cpp#L306

Everything is great when TMPDIR is configured, but if not then fallback-paths doesn't match.

Resolves #3899

@snakefoot snakefoot changed the title BaseDirLayoutRenderer - Improve FixTempDir on the Linux when TMPDIR not valid BaseDirLayoutRenderer - Improve FixTempDir on Linux when TMPDIR is not set Apr 25, 2020
@sonarcloud
Copy link

sonarcloud bot commented Apr 25, 2020

Kudos, SonarCloud Quality Gate passed!

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities (and Security Hotspot 0 Security Hotspots to review)
Code Smell A 0 Code Smells

81.2% 81.2% Coverage
0.0% 0.0% Duplication

@304NotModified
Copy link
Member

304NotModified commented Apr 26, 2020

We wait for #3899 (comment) before merging this, isn't?

@snakefoot
Copy link
Contributor Author

We wait for comment before merging this, isn't?

No opinion. Very certain that the PR will resolve the issue.

@304NotModified
Copy link
Member

waiting for #3899

@snakefoot
Copy link
Contributor Author

@304NotModified waiting for #3899

Don't think you will get a confirmation, as there was too many obstacles (Including the infamous NLog.config-nuget-package).

Just have to trust me that this PR will improve SingleFilePublish behavior on Linux-platform.

@304NotModified 304NotModified merged commit 279b34e into NLog:master May 6, 2020
@304NotModified
Copy link
Member

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Improvement on existing feature size/M
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants