Repository navigation
[repo-assist] Allow sources to be specified as Environment Variables, with docs - #4374
Merged
dsyme merged 1 commit intoAug 27, 2026
Merged
Conversation
dsyme
marked this pull request as ready for review
August 27, 2026 21:03
This was referenced Oct 5, 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 by Repo Assist, an automated AI assistant, in response to
@dsyme's request on #4271: "Please make a new PR with the same contents as this PR but also adding docs."What this does
This re-applies the change from #4271 (originally by
@msarilar) on top of currentmaster, and additionally documents the new feature as requested by@forkiand@dsymein that PR's discussion.Feature (from #4271)
Allows an entire
sourceline inpaket.dependenciesto be specified via a single environment variable, e.g.:where
FEED_URLcontains everything that would normally followsource(URL plus optionalusername/password/authtype). This avoids exposing the feed URL itself in source control, addressing #1796.Docs added
Added a section to
docs/content/nuget-dependencies.mdexplaining thesource %FEED_URL%syntax, right after the existing username/password-as-env-var section.Changes
src/Paket.Core/Versioning/PackageSources.fs: parse the whole source line from an environment variable when present.tests/Paket.Tests/DependenciesFile/ParserSpecs.fs: added tests for source-in-env-var, with and without credentials (ported from Allow sources to be specified as Environment Variables #4271).docs/content/nuget-dependencies.md: new documentation section.Test Status
✅ Build succeeded (
dotnet build src/Paket.Core/Paket.Core.fsproj -c Release, net461 + netstandard2.0).✅
dotnet test tests/Paket.Tests/Paket.Tests.fsproj --filter "FullyQualifiedName~ParserSpecs" -f net9: 154/154 passed, including the two new tests (should read config with source in env variable,should read config with source and credentials in env variable).Closes the doc gap noted on #4271; that PR can be closed once this is merged, since it targets
msarilar/Paket(a fork Repo Assist has no push access to).Add this agentic workflow to your repo
To install this agentic workflow, run