← Back to issue list

snapcraft 8.2.10 build failure

View original Github issue

Metadata

Project
snapcraft
Number
#4843
Type
issue
State
closed
Author
chenrui333
Labels
—
Created
Updated
Closed

Current evaluation

Resolved the 8.2.10 Homebrew build failure by correcting the stale craft-parts dependency and shipping Snapcraft 8.2.12 with craft-parts 1.30.1.

Resolution: closed resolved

Reason: Homebrew packaged craft-parts 1.29.0 although Snapcraft 8.2.10 required the API added in 1.30.0. Commit e1dcb33b2 updated craft-parts to 1.30.1 for the 8.2.12 release, and the reporter confirmed the dependency issue was corrected.

Evaluated by: mr-cal-bot

No scores available.

Issue body

### Bug Description snapcraft 8.2.10 build failure ### To Reproduce brew install -s https://raw.githubusercontent.com/Homebrew/homebrew-core/8e944da56201148b5a8181631001ce8c1d2f30f2/Formula/s/snapcraft.rb ### Environment ubuntu 22.04 ### snapcraft.yaml ```shell n/a ``` ### Relevant log output ```shell ==> /home/linuxbrew/.linuxbrew/Cellar/snapcraft/8.2.10/bin/snapcraft --version /home/linuxbrew/.linuxbrew/Cellar/snapcraft/8.2.10/libexec/lib/python3.12/site-packages/apt/__init__.py:37: Warning: W:Unable to read /home/linuxbrew/.linuxbrew/Cellar/apt/2.9.4/etc/apt/apt.conf.d/ - DirectoryExists (2: No such file or directory) apt_pkg.init_config() /home/linuxbrew/.linuxbrew/Cellar/snapcraft/8.2.10/libexec/lib/python3.12/site-packages/gnupg/_util.py:129: SyntaxWarning: invalid escape sequence '\d' _VERSION_STRING_REGEX = re.compile('(\d)(\.)(\d)(\.)(\d+)') /home/linuxbrew/.linuxbrew/Cellar/snapcraft/8.2.10/libexec/lib/python3.12/site-packages/gnupg/_parsers.py:846: SyntaxWarning: invalid escape sequence '\d' allowed_entry = re.findall('^(\d+)(|w|m|y)$', self._expiration_time) Traceback (most recent call last): File "/home/linuxbrew/.linuxbrew/Cellar/snapcraft/8.2.10/bin/snapcraft", line 8, in <module> sys.exit(main()) ^^^^^^ File "/home/linuxbrew/.linuxbrew/Cellar/snapcraft/8.2.10/libexec/lib/python3.12/site-packages/snapcraft/application.py", line 368, in main return app.run() ^^^^^^^^^ File "/home/linuxbrew/.linuxbrew/Cellar/snapcraft/8.2.10/libexec/lib/python3.12/site-packages/craft_application/application.py", line 487, in run self._register_default_plugins() File "/home/linuxbrew/.linuxbrew/Cellar/snapcraft/8.2.10/libexec/lib/python3.12/site-packages/snapcraft/application.py", line 117, in _register_default_plugins craft_parts.plugins.unregister("dotnet") ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ AttributeError: module 'craft_parts.plugins' has no attribute 'unregister'. Did you mean: 'register'? ``` ``` ### Additional context full build log, https://github.com/Homebrew/homebrew-core/actions/runs/9387671141/job/25851261032?pr=173791 relates to https://github.com/Homebrew/homebrew-core/pull/173791

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha — closed resolved Resolved the 8.2.10 Homebrew build failure by correcting the stale craft-parts dependency and shipping Snapcraft 8.2.12 with craft-parts 1.30.1.
stealth/space-bunny-alpha — closed not a bug Resolved as a Homebrew dependency mismatch: the formula bundled craft-parts 1.29.0 while Snapcraft 8.2.10 required 1.30.0; a corrected release was shipped.
stealth/space-bunny-alpha — closed resolved Resolved by correcting a stale Homebrew dependency and shipping a new release after snapcraft 8.2.10 used an API missing from craft-parts 1.29.0.
qwen/qwen3.6-35b-a3b — — Fixed by updating the Homebrew formula to require craft-parts 1.30.0, resolving the missing unregister API error in snapcraft 8.2.10. Closed.
qwen/qwen3.6-35b-a3b — — Fixed a build failure caused by Homebrew pinning an outdated craft-parts version missing the unregister function. The dependency mismatch was resolved by updating the package version.
qwen/qwen3.6-35b-a3b — — Fixed a build failure caused by Homebrew pinning an outdated craft-parts version. The dependency mismatch was resolved, a new release was shipped, and the issue closed.
qwen3.6-35b-a3b-mtp-q6 — — Build failure resulted from Homebrew pinning an outdated craft-parts version lacking the required unregister method. The dependency mismatch was resolved by updating the formula, and the issue closed after a corrected release shipped.

Update history

No update history recorded yet.

Related work

  • Related To: homebrew-core#173791 (confidence 100%)

    The linked Homebrew build packaged craft-parts 1.29.0, exposing the dependency mismatch.

Related issues

Issue Project State Summary Similarity
#6481 build(deps): bump craft-parts to 2.35.2 snapcraft merged Merged dependency bump to craft-parts 2.35.2 and added Snapcraft 9.1.4 release notes.
73%
#5661 Snapcraft hangs forever if a GitHub repository doesn't exist snapcraft open Snapcraft 8.10.2 hangs during part pulls when Git prompts for credentials; maintainers assigned the fix to craft-parts, where the equivalent issue remains open.
71%