project loader: install dirmngr prior to configuring package repositories
Metadata
Current evaluation
Merged PR #3294 (e4a013fd4), installing dirmngr and gnupg before package-repository setup so Launchpad builds have the required GPG tooling.
Resolution: closed resolved
Reason: Merged as commit e4a013fd4. It uses Repo.install_build_packages() to install required GPG packages before repository configuration, closing the Launchpad-specific dependency gap.
Evaluated by: mr-cal-bot
No scores available.
Issue body
This was previously addressed by installing the required packages
in the LXD provider's setup environment and Multipass images already
have the required packages installed. However, on Launchpad,
the required package would not be installed.
Install the required packages when additional package-repositories
are configured, including 'dirmngr' and 'gnupg' using
'Repo.install_build_packages()' which accounts for already-installed
packages.
Signed-off-by: Chris Patterson <chris.patterson@canonical.com>
- [ ] Have you followed the [guidelines for contributing](https://github.com/snapcore/snapcraft/blob/master/CONTRIBUTING.md)?
- [ ] Have you signed the [CLA](http://www.ubuntu.com/legal/contributors/)?
- [ ] Have you successfully run `./runtests.sh static`?
- [ ] Have you successfully run `./runtests.sh tests/unit`?
-----
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| stealth/space-bunny-alpha | — | closed resolved | Merged PR #3294 (e4a013fd4), installing dirmngr and gnupg before package-repository setup so Launchpad builds have the required GPG tooling. | |
| stealth/space-bunny-alpha | — | closed resolved | Merged PR #3294 (commit e4a013fd4) makes the project loader call Repo.install_build_packages() to install dirmngr and gnupg before configuring extra package repositories, fixing Launchpad builds missing these packages. | |
| stealth/space-bunny-alpha | — | closed resolved | Merged PR #3294 (e4a013fd4) installs dirmngr and gnupg before configuring package repositories, fixing missing dependencies in Launchpad builds. | |
| qwen/qwen3.6-35b-a3b | — | — | Merged fix installing dirmngr and gnupg via Repo.install_build_packages() before repository configuration. Resolves missing dependencies on Launchpad previously only handled in LXD and Multipass. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Merged fix installing dirmngr and gnupg before configuring repositories, resolving Launchpad build failures. Verified locally and on Launchpad by maintainer cjp256. |
Update history
No update history recorded yet.
Related work
-
Related To:
snapcraft#3098
(confidence 90%)
Earlier work covered build-provider environments, including LXD, but did not cover Launchpad.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #3293 project loader: install dirmngr prior to configuring package repositories | snapcraft | closed | Closed unmerged because identical fix snapcraft#3294 merged in commit e4a013fd4, installing dirmngr and gnupg before configuring package repositories. | |
| #3801 package repositories: ensure dependencies are installed before use | snapcraft | merged | Merged in commit 38e2a8db2, ensuring gnupg and dirmngr are installed before configuring package repositories. | |
| #3800 parts: install dirmngr earlier | snapcraft | closed | PR #3800 (parts: install dirmngr earlier, +11/-5) was closed unmerged by sergiusens in favour of #3801, which was merged to main as 38e2a8db2 (CRAFT-1149) to install package-repository dependencies before use. |