← Back to issue list

feat: support build-packages

View original Github issue

Metadata

Project
snapcraft-rocks
Number
#8
Type
pull request
State
merged
Author
tigarmo
Labels
Created
Updated
Closed

Current evaluation

Merged a feature adding a wrapper script to run apt update before Snapcraft, resolving an empty Apt cache issue in the base Ubuntu image. Approved by reviewers and rebased to pass tests before merge.

Suggested action:

No scores available.

Issue body

NOTE: The first two commits can be skipped because this PR is built on top of #6 -------------------- The cause of the problem is that the base Ubuntu image used by the Snapcraft rock has an empty Apt cache. This makes sense for application images which don't expect to use/need Apt, but is a problem for a build tool like Snapcraft. The fix in this commit is to add a "wrapper" script that first calls "apt update" to populate the cache, and then execs Snapcraft as normal.

Evaluation history

Date Model Scores Action Summary
qwen/qwen3.6-35b-a3b Merged a feature adding a wrapper script to run apt update before Snapcraft, resolving an empty Apt cache issue in the base Ubuntu image. Approved by reviewers and rebased to pass tests before merge.
qwen3.6-35b-a3b-mtp-q6 Merged a wrapper script that runs apt update before Snapcraft, resolving an empty Apt cache issue. Required a rebase to pass failing tests before final merge.

Update history

No update history recorded yet.

Related issues

Issue Project State Summary Similarity
#43 packages: add support to apt cache operations craft-parts merged Merged PR adding apt cache operations for package retrieval. Approved by two reviewers and passed CI. Follows snapcraft standards and is planned for future migration to a separate project.
77%
#153 feat: support foreign architectures craft-archives merged Merged after two approvals and passing CI, adding apt foreign architecture support for deb822-based Ubuntu releases. A final force-push targeted the 2.1.0 release. Resolves #150 and unblocks multiple snapcraft issues.
76%
#49 packages: add snap package support craft-parts merged Merged after implementing snap download and installation for stage and build snaps. Approved by two reviewers, passed CI, and added 1,072 lines across five files. Follows snapcraft conventions with future refactoring planned.
74%
#55 feat: support 'pack' command craft-actions merged Merged to add version-aware support for the snapcraft pack command, addressing Snapcraft 8 deprecation and Snapcraft 9 breaking changes. Maintainer merged despite unrelated CI infrastructure failures on ppc64el and s390x.
73%
#1935 elf: contemplate more patching scenarios snapcraft merged Merged. Added support for building classic confined snaps on older releases like bionic and enabling snapcraft hooks. Approved, passed CI, and integrated successfully.
71%
#3039 build providers: setup initial apt source configuration snapcraft merged Merged refactoring centralizing snapcraft initialization in the base provider and adding apt source configuration via environment flags. Fixed a file permission error and streamlined installation. Approved and merged after CI checks.
71%
#322 feat: support 26.04 as a build-base imagecraft merged Merged to add Ubuntu 26.04 as a supported build-base value. Approved by two reviewers and passed all CI checks. The update modifies four files without changing defaults or main tests.
71%
#636 feat: add a "pending" status to remote builds craft-application merged Merged the feature adding a pending status to remote builds. The change upstreams code from canonical/snapcraft#4956, received two approvals, and modified four files with 43 additions and 15 deletions.
70%
#196 feat: remote build service craft-application merged Merged the remote build service feature, migrating code from snapcraft. Approved by two reviewers, passed CI checks, and introduced 2316 lines across 26 files.
70%