← Back to issue list

parts: Do not import craft_parts.packages.deb until needed

View original Github issue

Metadata

Project
snapcraft
Number
#3843
Type
pull request
State
merged
Author
valentindavid
Labels
—
Created
Updated
Closed

Current evaluation

Merged PR #3843, deferring the craft_parts.packages.deb import until container/VM use to fix Snapcraft on non-Debian hosts; commit ed49405fb.

Resolution: closed resolved

Reason: PR #3843 was merged via merge commit 57ecab3bc. Its change in ed49405fb fixes Launchpad bug #1981979 by avoiding the failing Debian-package import on non-Debian systems.

Evaluated by: mr-cal-bot

No scores available.

Issue body

Importing craft_parts.packages.deb on non-deb systems fails. So this import should only happen when in the container or VM. Fixes https://bugs.launchpad.net/snapcraft/+bug/1981979 - [x] Have you followed the [guidelines for contributing](https://github.com/snapcore/snapcraft/blob/master/CONTRIBUTING.md)? - [x] Have you signed the [CLA](http://www.ubuntu.com/legal/contributors/)? - [x] Have you successfully run `make lint`? - [x] Have you successfully run `pytest tests/unit`? -----

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha — closed resolved Merged PR #3843, deferring the craft_parts.packages.deb import until container/VM use to fix Snapcraft on non-Debian hosts; commit ed49405fb.
stealth/space-bunny-alpha — closed resolved Merged PR #3843, deferring craft_parts.packages.deb imports to fix failures on non-Deb systems (ed49405); fixes Launchpad bug #1981979.
qwen/qwen3.6-35b-a3b — — Merged to defer importing craft_parts.packages.deb until needed, resolving failures on non-deb systems. Approved by reviewers, passed CI checks, and integrated into main.
qwen3.6-35b-a3b-mtp-q6 — — Merged into main. Defers importing craft_parts.packages.deb to prevent failures on non-deb systems, resolving bug #1981979. The change achieved 100% test coverage and was successfully integrated.

Update history

No update history recorded yet.

Related issues

No related issues found above the similarity threshold.