Repository navigation
Fix APT mirror transport URI handling - #17
Merged
Merged
Conversation
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.
Debian 13 cloud images use
mirror+file:///etc/apt/mirrors/debian.listanddebian-security.list.dscpm aptRepositories exportrejected these URIs, and its shared identity helper appended a misleading/to mirror-list filenames in diagnostics.Extend the shared APT validator to support
mirror,mirror+http,mirror+https,mirror+file, andmirror+copy, plus localcopyrepositories. Validate network and local transports according to their URI shape while retaining credential and fragment restrictions. Compare mirror-list URIs exactly and preserve their original spelling without resolving mirror lists or normalizing paths. All CLI operations and both DSC manifests use the same implementation.Regression tests cover Debian mirror lists, Ubuntu HTTP/HTTPS sources, local repositories, both APT source formats, URI round trips, unsafe URIs, and Export → compliant Test through the CLI and DSC.
Validation after rebasing onto
main(b7d9d75):DSCPM_REQUIRE_DSC=1 go test ./... -skip '^TestDSCPackagesIntegration$' -count=1inresources/package-management: passed, using Go 1.25.0 and DSC 3.3.0.git diff --check upstream/main: passed.TestDSCPackagesIntegrationfails because it combines stderr with JSON stdout and this machine's DSC emits a startup warning about/etc/dscpermissions. All other tests pass, including the new DSC URI integration tests.