Allow specifying custom Ubuntu archive mirrors in build
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Snapcraft |
New
|
Undecided
|
Unassigned |
Bug Description
Currently, snapcraft uses archive.ubuntu.com for the software archive and it's not optimal, please support a mechanism to do so.
## Workaround ##
Patch the source list after the build is initialized(would have to repeat it after every `snapcraft clean`)
### Multipass build ###
```
multipass exec snapcraft-
multipass exec snapcraft-
```
### LXD build ###
```
lxc exec snapcraft-
lxc exec snapcraft-
```
summary: |
- No way to directly specify local ubuntu archive mirror in multipass - build environment + Allow specifying custom Ubuntu archive mirrors in build |
I too would appreciate being able to use a custom mirror. However I'd rather not use --enable-geoip, but something which lets snapcraft use a specific mirror. For example I have a mirror at home on a specific host/IP which I'd prefer to use, to reduce my bandwidth usage, and speed up builds.