Repository navigation
[repo-assist] Add regression test for clitool no-op install detection (#3166) - #4382
Merged
dsyme merged 1 commit intoAug 29, 2026
Merged
Conversation
Verified via manual end-to-end repro with the built paket binary that 'paket install' correctly no-ops on a second run when a group contains a clitool dependency (prints 'Skipping resolver ... since it is already up-to-date' and produces an unchanged paket.lock). The originally reported issue appears to already be fixed by later changes to DependencyChangeDetection.fs. Adds a unit test covering the no-op detection path for clitool packages in findNuGetChangesInDependenciesFile, since no existing test covered this scenario. Co-authored-by: Copilot <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🤖 This is an automated PR from Repo Assist, an AI assistant. Please review carefully before merging.
Summary
Investigated #3166 ("
paket installis never a noop when a clitool is in the group").I could not reproduce the reported behavior with the current codebase. Using a manually built
paket.dlland apaket.dependenciesfile containing both aclitoolentry and a regular NuGet package, runningpaket installtwice in a row produced:The
paket.lockfile was byte-for-byte identical after the second run — i.e. the resolver was correctly skipped and the operation was a genuine no-op, exactly as expected.The issue is quite old (2018) and the resolver / change-detection code (
DependencyChangeDetection.fs) has had multiple fixes since then, so it looks like this was already resolved by unrelated later work.What this PR does
Since no existing test covered the "clitool unchanged between deps-file and lock-file" no-op scenario, this PR adds one (
CliToolNoopSpecs.fs) so a future regression is caught automatically, alongside the existingDependencyChangesSpecs.fssuite.No production code changes — test-only addition.
Test Status
dotnet test tests/Paket.Tests/Paket.Tests.fsproj --filter "FullyQualifiedName~CliToolNoopSpecs" -f net9→ Passed (1/1)paket.dll(installrun twice) confirms correct no-op behavior for clitool groups in the current codebase.Recommendation
I'll leave a comment on #3166 recommending it be closed as already fixed, backed by this evidence. Maintainers should feel free to close the issue once this PR (or the reasoning) is reviewed.
Add this agentic workflow to your repo
To install this agentic workflow, run