Enable users to override default mirrors used by Snapcraft-created build environments, allowing them to choose more performant / localized mirrors.
Configuration and behavior of APT mirror configuration.
- For i386 & amd64, Snapcraft uses: http://archive.ubuntu.com/ubuntu
- For non-x86, Snapcraft uses: http://ports.ubuntu.com/ubuntu-ports
- For i386 & amd64, Snapcraft uses: http://archive.ubuntu.com/ubuntu
- For non-x86, Snapcraft uses: http://ports.ubuntu.com/ubuntu-ports
SNAPCRAFT_BUILD_ENVIRONMENT_PRIMARY_MIRROR=<url>
- This environment variable is undocumented and has no known usage.
Enable users to configure mirror URL with fully supported arguments:
- Modify Snapcraft to support the command-line option
--apt-mirror <url>
with corresponding environment variableSNAPCRAFT_APT_MIRROR=<url>
. - Replace
SNAPCRAFT_BUILD_ENVIRONMENT_PRIMARY_MIRROR
variable with introducedSNAPCRAFT_APT_MIRROR
.