Skip to content

feat: Removes the useImprovedDotnetWithoutRestore flag#6554

Merged
calhar-snyk merged 1 commit intomainfrom
feat/deprecate-dotnet-feature-flags
Feb 27, 2026
Merged

feat: Removes the useImprovedDotnetWithoutRestore flag#6554
calhar-snyk merged 1 commit intomainfrom
feat/deprecate-dotnet-feature-flags

Conversation

@calhar-snyk
Copy link
Copy Markdown
Contributor

@calhar-snyk calhar-snyk commented Feb 19, 2026

Pull Request Submission Checklist

  • Follows CONTRIBUTING guidelines
  • Commit messages
    are release-note ready, emphasizing
    what was changed, not how.
  • Includes detailed description of changes
  • Contains risk assessment (Low)
  • Highlights breaking API changes (if applicable)
  • Links to automated tests covering new functionality
  • Includes manual testing instructions (if necessary)
  • Updates relevant GitBook documentation (PR link: ___)
  • Includes product update to be announced in the next stable release notes

What does this PR do?

snyk-nuget-plugin@4.1.0 removed the option useImprovedDotnetWithoutPublish and treated the setting as true after a staged rollout completed.
This option was removed in snyk/snyk-nuget-plugin#280
The version of snyk-nuget-plugin got bumped in this project to v4.1.1 here: #6560

How should this be manually tested?

  • Can build the legacy CLI and test any dotnet project having run dotnet restore using snyk test --dotnet-runtime-resolution
    e.g.:
❯ ls
dotnet_8.csproj           foo.json                  program.cs
expected_depgraph-v3.json obj
❯ snyk test --dotnet-runtime-resolution --print-graph --org=********
Snip

❯ ls
bin                       expected_depgraph-v3.json obj
dotnet_8.csproj           foo.json                  program.cs
❯ rm -rf bin
❯ ~/code/cli/bin/snyk test --dotnet-runtime-resolution --print-graph --org=********
Snip

❯ ls
dotnet_8.csproj           foo.json                  program.cs
expected_depgraph-v3.json obj

Note how the current invocation builds the bin folder, while the newly built cli does not.

Any background context you want to provide?

useImprovedDotnetWithoutPublish was a flag that could be passed to the snyk-nuget-plugin which would affect the behaviour of the --dotnet-runtime-resolution flag.
Previously, --dotnet-runtime-resolution would cause the snyk-nuget-plugin to run dotnet publish ... under the hood in order to get runtime dependencies. However, this is expensive -- useImprovedDotnetWithoutPublish was an internal feature flag to trial and rollout a mechanism of detecting runtime resolutions without the use of dotnet publish ...

What are the relevant tickets?

@calhar-snyk calhar-snyk force-pushed the feat/deprecate-dotnet-feature-flags branch 4 times, most recently from 1f80260 to 3a43499 Compare February 19, 2026 14:53
@calhar-snyk calhar-snyk marked this pull request as ready for review February 19, 2026 16:42
@calhar-snyk calhar-snyk requested review from a team as code owners February 19, 2026 16:42
@snyk-pr-review-bot

This comment has been minimized.

@calhar-snyk calhar-snyk force-pushed the feat/deprecate-dotnet-feature-flags branch from 3a43499 to 1940414 Compare February 23, 2026 17:33
@snyk-io
Copy link
Copy Markdown

snyk-io Bot commented Feb 23, 2026

Snyk checks have passed. No issues have been found so far.

Status Scanner Critical High Medium Low Total (0)
Open Source Security 0 0 0 0 0 issues
Licenses 0 0 0 0 0 issues
Code Security 0 0 0 0 0 issues

💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse.

@snyk-pr-review-bot

This comment has been minimized.

@calhar-snyk calhar-snyk force-pushed the feat/deprecate-dotnet-feature-flags branch from 1940414 to 7269d28 Compare February 24, 2026 15:28
@snyk-pr-review-bot

This comment has been minimized.

@calhar-snyk calhar-snyk force-pushed the feat/deprecate-dotnet-feature-flags branch from 7269d28 to 93b5594 Compare February 24, 2026 18:08
@snyk-pr-review-bot
Copy link
Copy Markdown

PR Reviewer Guide 🔍

🧪 PR contains tests
🔒 No security concerns identified
⚡ No major issues detected
📚 Repository Context Analyzed

This review considered 12 relevant code sections from 9 files (average relevance: 0.90)

@calhar-snyk calhar-snyk force-pushed the feat/deprecate-dotnet-feature-flags branch from 93b5594 to 65e1bb8 Compare February 25, 2026 14:42
@calhar-snyk calhar-snyk force-pushed the feat/deprecate-dotnet-feature-flags branch from 65e1bb8 to 8a3d324 Compare February 26, 2026 13:56
@calhar-snyk calhar-snyk force-pushed the feat/deprecate-dotnet-feature-flags branch from 8a3d324 to 5dda787 Compare February 26, 2026 16:09
@calhar-snyk calhar-snyk merged commit 1d112a3 into main Feb 27, 2026
9 checks passed
@calhar-snyk calhar-snyk deleted the feat/deprecate-dotnet-feature-flags branch February 27, 2026 16:08
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