Skip to content

Revert "Apply NuGet.Client close-on-exec fix" - #8567

Merged
agocke merged 1 commit into
mainfrom
revert-8490-dev-agocke-closeOnExec
Aug 24, 2026
Merged

agocke merged 1 commit into
mainfrom
revert-8490-dev-agocke-closeOnExec

Conversation

@agocke

@agocke agocke commented Aug 22, 2026 •

Copy link
Copy Markdown
Member

Reverts #8490

this fix was incorrect because open is a variadic function and you can’t pinvoke it directly. The proper fix is being tested in nuget now

Copilot AI lite review requested due to automatic review settings August 22, 2026 15:19
@dotnet-policy-service
dotnet-policy-service Bot requested a review from a team August 22, 2026 15:19
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 1 pipeline(s).
1 pipeline(s) were filtered out due to trigger conditions.
There may be pipelines that require an authorized user to comment /azp run to run.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Reverts the Unix open(..., O_CLOEXEC) implementation and restores the previous creat()-based file creation behavior.

Changes:

  • Removes platform-specific close-on-exec flags and P/Invoke logic.
  • Restores the corresponding error message and analyzer suppression text.
Show a summary per file
File Description
src/nuget-client/src/NuGet.Core/NuGet.Packaging/NuGetExtractionFileIO.cs Updated as part of this pull request.
src/nuget-client/src/NuGet.Core/NuGet.Packaging/GlobalSuppressions.cs Updated as part of this pull request.

Review details

💡 Add a code-review agent skill for context-aware, tailored reviews. Learn more in the docs.

  • Files reviewed: 2/2 changed files
  • Comments generated: 1
  • Review effort level: Lite

@akoeplinger

Copy link
Copy Markdown
Member

Thanks. It looks like this actually caused test failures on osx-arm64.

@agocke
agocke merged commit 8fca7b8 into main Aug 24, 2026
12 checks passed
@agocke
agocke deleted the revert-8490-dev-agocke-closeOnExec branch August 24, 2026 09:59
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