snapcraft cleanbuild
Metadata
Current evaluation
The obsolete cleanbuild command was retired because builds became clean by default; a maintainer closed the report in August 2023.
Resolution: closed stale
Reason: Closing maintainer @sergiusens explained that cleanbuild was no longer supported because all builds transparently performed clean builds by default.
Evaluated by: mr-cal-bot
No scores available.
Issue body
Sorry, an error occurred in Snapcraft:
Traceback (most recent call last):
File "/usr/bin/snapcraft", line 11, in <module>
load_entry_point('snapcraft==2.43.1+18.4', 'console_scripts', 'snapcraft')()
File "/usr/lib/python3/dist-packages/click/core.py", line 722, in __call__
return self.main(*args, **kwargs)
File "/usr/lib/python3/dist-packages/click/core.py", line 697, in main
rv = self.invoke(ctx)
File "/usr/lib/python3/dist-packages/click/core.py", line 1066, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/usr/lib/python3/dist-packages/click/core.py", line 895, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/usr/lib/python3/dist-packages/click/core.py", line 535, in invoke
return callback(*args, **kwargs)
File "/usr/lib/python3/dist-packages/snapcraft/cli/lifecycle.py", line 244, in cleanbuild
project=project, echoer=echo, remote=remote, build_environment=build_environment
File "/usr/lib/python3/dist-packages/snapcraft/internal/lifecycle/_containers.py", line 53, in cleanbuild
tar_filename = _create_tar_file(project.info.name)
File "/usr/lib/python3/dist-packages/snapcraft/internal/lifecycle/_containers.py", line 71, in _create_tar_file
t.add(os.path.curdir, filter=_create_tar_filter(tar_filename))
File "/usr/lib/python3.6/tarfile.py", line 1957, in add
recursive, exclude, filter=filter)
File "/usr/lib/python3.6/tarfile.py", line 1955, in add
for f in os.listdir(name):
PermissionError: [Errno 13] Permission denied: './.aptitude'
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| stealth/space-bunny-alpha | — | closed stale | The obsolete cleanbuild command was retired because builds became clean by default; a maintainer closed the report in August 2023. | |
| stealth/space-bunny-alpha | — | closed stale | Closed as obsolete after cleanbuild support was removed; regular Snapcraft builds now perform clean builds transparently by default. | |
| stealth/space-bunny-alpha | — | closed stale | Closed as obsolete: cleanbuild was decommissioned because normal Snapcraft builds now run transparently clean. | |
| stealth/space-bunny-alpha | — | closed stale | Closed without a documented fix after Snapcraft 2.43.1+18.4 failed to archive the inaccessible ./.aptitude directory; no resolving PR or commit was identified. | |
| qwen/qwen3.6-35b-a3b | — | — | snapcraft cleanbuild failed with a PermissionError while archiving ./.aptitude. The issue was closed without comments or a resolution, indicating it was abandoned. | |
| qwen/qwen3.6-35b-a3b | — | — | Closed without resolution. The report details a PermissionError during snapcraft cleanbuild caused by restricted access to the .aptitude directory. With zero comments and no fix applied, the issue was abandoned or marked stale. | |
| qwen/qwen3.6-35b-a3b | — | — | Closed without resolution. Reports a PermissionError during snapcraft cleanbuild caused by an unreadable .aptitude directory. Likely abandoned or superseded by newer snapcraft versions that deprecated the cleanbuild command. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Abandoned and closed without resolution due to inactivity. The report detailed a PermissionError when snapcraft cleanbuild attempted to archive the .aptitude directory. No fix or developer comments were provided. |
Update history
| Date | Change |
|---|---|
| created |
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #1697979 snapcraft fails on initial cleanbuild probe | snapcraft (launchpad) | closed | Closed as obsolete: cleanbuild was decommissioned, and standard Snapcraft builds now transparently use a clean build environment. | |
| #1816042 snapcraft cleanbuild fails if container isn't fully ready | snapcraft (launchpad) | closed | Closed as obsolete: @sergiusens said cleanbuild was no longer supported because normal builds now transparently provide clean builds. | |
| #1811208 snapcraft failed to build with cleanbuild on 18.04 | snapcraft (launchpad) | closed | Expired after 60 days without activity; no fix was recorded. A maintainer advised using --destructive-mode because cross-compilation in build environments was unsupported. | |
| #1695882 cleanbuild loses scripted version | snapcraft (launchpad) | closed | Closed as obsolete after cleanbuild was retired; no scripted-version fix was made. A maintainer closed the report on 2023-08-17, noting cleanbuild was no longer supported. | |
| #1746359 snapcraft cleanbuild --debug should provide guidance on build failure | snapcraft (launchpad) | closed | Superseded by Snapcraft 3.x base-based build environments, which replaced the legacy cleanbuild --debug container workflow. | |
| #1752498 cleanbuild fails with lxd snap | snapcraft (launchpad) | closed | Closed as obsolete: the cleanbuild command was removed; Snapcraft builds now perform clean builds by default. | |
| #1746381 snapcraft cleanbuild shouldn't always delete container at end | snapcraft (launchpad) | closed | No fix was made: maintainers confirmed cleanbuild containers were disposable, recommended SNAPCRAFT_CONTAINER_BUILDS, and left the request for default failure shells unimplemented. | |
| #1788654 snapcraft cleanbuild doesn't work with cross-compile stage-packages | snapcraft (launchpad) | closed | Closed as an obsolete legacy cleanbuild/LXD issue after a maintainer directed users to migrate to bases; no targeted cross-architecture fix was recorded. | |
| #2044389 snapcraft clean failed but exit 0 | snapcraft (launchpad) | open | Snapcraft 7.5.3 reports a missing build environment during clean but exits 0; a maintainer confirmed the bug and agreed it should fail, with no fix recorded. | |
| #1609803 snapcraft cleanbuild --no-clean-up | snapcraft (launchpad) | closed | Cleanbuild debugging landed in snapcore/snapcraft PR #740 (commit a24083e75); follow-up PR #1404 made --debug enter a shell when builds fail. |