Repository navigation
[repo-assist] Fix unquoted local NuGet source paths containing spaces - #4354
Merged
dsyme merged 1 commit intoAug 26, 2026
Merged
Conversation
Co-authored-by: Copilot <[email protected]>
dsyme
marked this pull request as ready for review
August 26, 2026 16:45
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 PR was created automatically by Repo Assist, an AI assistant, as part of routine repository maintenance.
Closes #3129
Root cause
PackageSource.Parseinsrc/Paket.Core/Versioning/PackageSources.fsextracted an unquotedsourcepath vialine.Split(' ').[1]. This truncates the path at the first space, so an unquoted local source such as:was parsed as just
C:\Program, silently producing a bogus/nonexistent source path (the quoted form,source "C:\Program Files\...", already worked correctly via the existing regex path).Fix
When the line isn't quoted, take everything after the
sourcekeyword as the path instead of splitting on the first space, while still stopping before any trailingusername:/password:/authtype:attributes on the same line (these remain supported, matching existing credential-parsing tests).Trade-offs
Test Status
tests/Paket.Tests/Versioning/PackageSourceSpecs.fscovering: unquoted path with spaces, unquoted path with spaces + trailing slash, and unquoted path with spaces plus trailingusername:/password:attributes.dotnet build tests/Paket.Tests/Paket.Tests.fsproj -f net9 --no-restore -p:PaketDisableGlobalRestore=true— 0 errors (only pre-existing, unrelatedFS0044deprecation warnings).dotnet test ... --filter "FullyQualifiedName~PackageSourceSpecs"— 14/14 passed.dotnet test ... --filter "FullyQualifiedName~ParserSpecs|FullyQualifiedName~SaveSpecs"— 172/172 passed, no regressions in dependencies-file/source parsing or save round-tripping.(Note: full
paket install/dotnet paket restorefor theBuilddependency group is blocked in this sandbox by network restrictions unrelated to this change — theMaingroup used by these tests restores and builds fine.)Warning
Firewall blocked 1 domain
The following domain was blocked by the firewall during workflow execution:
appveyorcidata.blob.core.windows.netTo allow these domains, add them to the
network.allowedlist in your workflow frontmatter:See Network Configuration for more information.
Add this agentic workflow to your repo
To install this agentic workflow, run