Repository navigation
Support for setting Alpine/Ubuntu/Debian mirrors - #17072
Conversation
There was a problem hiding this comment.
Pull request overview
This PR extends the eng/common/cross/build-rootfs.sh rootfs builder to allow overriding default package repository endpoints, enabling users to point Ubuntu/Debian (APT) and Alpine (APK) rootfs builds at custom mirrors.
Changes:
- Adds new CLI flags to override Ubuntu/Debian APT base URIs and Alpine repository base URI.
- Applies the Alpine override when configuring
apk.staticrepositories. - Applies Ubuntu/Debian overrides to the
__UbuntuRepovalue used bydebootstrap/install-debs.py.
Comments suppressed due to low confidence (1)
eng/common/cross/build-rootfs.sh:421
usage()documents--jobs N, but the argument parser only recognizes--use-jobs. Either the help text is misleading or the parser is missing the documented alias, which can cause users to think the flag is supported when it isn't.
--use-jobs)
shift
MAXJOBS=$1
;;
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
@dotnet-policy-service agree company="Microsoft" |
Co-authored-by: Copilot Autofix powered by AI <[email protected]>
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 1 out of 1 changed files in this pull request and generated 2 comments.
Comments suppressed due to low confidence (1)
eng/common/cross/build-rootfs.sh:441
- Argument parsing currently accepts
--use-jobsbut not--jobs, even thoughusage()advertises--jobs. Consider accepting both as aliases to preserve compatibility and align CLI/help output.
--use-jobs)
shift
MAXJOBS=$1
;;
Co-authored-by: Copilot Autofix powered by AI <[email protected]>
Co-authored-by: Copilot Autofix powered by AI <[email protected]>
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 1 out of 1 changed files in this pull request and generated no new comments.
Comments suppressed due to low confidence (1)
eng/common/cross/build-rootfs.sh:434
usage()advertises--jobs Nbut the argument parser only handles--use-jobs. Also,--use-jobscurrently accepts a missing argument and can accidentally consume the next option (e.g.--use-jobs --skipunmount), causing mis-parsing of the remaining arguments.
--use-jobs)
shift
MAXJOBS=$1
;;
To double check:
The right tests are in and the right validation has happened. Guidance: https://github.com/dotnet/arcade/blob/main/Documentation/Validation.md
The script is fully backward compatible