Repository navigation
[repo-assist] Fix tab characters in paket.dependencies causing resolution failure - #4398
Merged
dsyme merged 1 commit intoAug 29, 2026
Merged
Conversation
Closes #2172 The nuget/clitool/version-requirement/external_lock line parsers in DependenciesFileParser.fs split tokens only on the space character. A stray tab between the version and options (e.g. 'prerelease') therefore stayed attached to the previous token, producing an unparseable version string and a resolver failure. Split on both space and tab so accidental tab whitespace no longer breaks parsing, matching how most text editors insert either character interchangeably. Co-authored-by: Copilot <[email protected]>
dsyme
marked this pull request as ready for review
August 29, 2026 17:13
This was referenced Oct 5, 2026
This was referenced Oct 14, 2026
This was referenced Nov 11, 2026
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 pull request from Repo Assist, an AI assistant.
Closes #2172
Root cause
DependenciesFileParser.fstokenizesnuget/clitool/external_locklines and version-requirement strings by splitting on the space character only (Split([|' '|], ...)). If a line contains a tab (e.g. between the version andprerelease, as reported in #2172), the tab stays glued to the adjacent token, producing an unparseable version string and a resolver failure ("Could not resolve package ...").Fix
Split on both space and tab (
Split([|' '; '\t'|], ...)) in the four affected call sites:parseVersionRequirement, thePackageactive pattern, theCliToolactive pattern, and theExternalLockactive pattern. This makes tab whitespace behave the same as a space, which is how most editors' indentation/auto-complete can accidentally insert it.Trade-offs
Test Status
should read config with tab between version and prereleaseintests/Paket.Tests/DependenciesFile/ParserSpecs.fsreproducing the exact issue Tab characters in paket.dependencies cause resolution failure #2172 scenario (tab between version andprerelease).dotnet test tests/Paket.Tests/Paket.Tests.fsproj --filter "FullyQualifiedName~ParserSpecs": 157/157 passed onnet9.0(including the new test). Thenet461host could not run in this sandbox (mononot installed) — pre-existing infrastructure limitation unrelated to this change.Add this agentic workflow to your repo
To install this agentic workflow, run