Repository navigation
fix(clientsetup): keep the path prefix in pacman private-repository URLs - #494
Merged
Merged
Conversation
Coverage
Go by area
Web by area (lines)
|
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.
Problem
The pacman snippets (hosted, group and proxy) print a private-repository
Server = https://<USERNAME>:<TOKEN>@host/repos/...line built fromhost+/repos/, which drops any path prefix of the public origin (and, for the proxy line, uses the wrong base). Behindhttps://registry.example:8443/artifactsthe line pointed at a URL that does not exist.Change
basePathplaceholder (the base URL without its scheme), like the npm credential scope.clientsetup.generated.tsregenerated.https://registry.example:8443/artifacts: every URL must carry host:port and/artifacts/, every/repos/and/v2must be preceded by/artifacts, docker login must name host:port. Mirrored web test overclientSetup.Not changed (host-only by protocol, cannot carry a prefix): docker, terraform/OpenTofu source addresses and credentials, composer http-basic host, sbt and nix netrc host.
Tests
internal/clientsetuptable test;web/src/lib/__tests__/installCommands.test.ts.Checks run
make fmt; golangci-lint run ./internal/clientsetup/...; go test -short -race ./internal/clientsetup/... ./internal/repotype/...; cd web && bun test installCommands, bun run typecheck.