charmcraft pack fails trying to include a non-existing charm/src/.tox/
Metadata
Current evaluation
The missing-file packing failure was fixed upstream in craft-parts; maintainer lengau closed charmcraft#501 on 2024-02-22 as resolved.
Resolution: closed resolved
Reason: Maintainer lengau closed the issue with the explicit comment, "Closing this since it's been fixed upstream." No corresponding Charmcraft PR or commit was cited.
Evaluated by: mr-cal-bot
No scores available.
Issue body
My worktree does not have an `src/.tox` subfolder. Log attached.
After running pack again, it worked fine.
[charmcraft.log](https://github.com/canonical/charmcraft/files/7022238/charmcraft.log)
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| stealth/space-bunny-alpha | — | closed resolved | The missing-file packing failure was fixed upstream in craft-parts; maintainer lengau closed charmcraft#501 on 2024-02-22 as resolved. | |
| stealth/space-bunny-alpha | — | closed resolved | The missing .tox copy failure was fixed upstream in craft-parts, and Charmcraft issue #501 was closed as resolved. | |
| stealth/space-bunny-alpha | — | closed resolved | Missing .tox/.git paths during dirty-source repacking were fixed upstream in the parts lifecycle; #501 was closed after users confirmed workarounds and the maintainer noted the upstream fix. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | charmcraft pack failed when copying non-existent build directories or files. Users worked around it with charmcraft clean. The issue was closed as fixed upstream in the underlying parts lifecycle code. | |
| qwen/qwen3.6-35b-a3b | — | — | charmcraft pack failed when packaging deleted directories like .tox or .git. Users worked around it with charmcraft clean. The issue was closed after the underlying lifecycle bug was resolved upstream in craft-parts. | |
| qwen/qwen3.6-35b-a3b | — | — | charmcraft pack failed copying non-existent directories from prior builds. Users worked around it with charmcraft clean or .jujuignore. The issue was closed after being fixed upstream in the underlying build system. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | charmcraft pack fails copying non-existent directories from prior builds. Users work around it with charmcraft clean. The defect stems from an upstream craft-parts lifecycle bug. Closed as the issue has been fixed upstream. |
Update history
No update history recorded yet.
Related work
-
Related To:
charmcraft#736
(confidence 75%)
A later Charmcraft issue was identified as another case of the same missing-file packing failure.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #746 `charmcraft pack` for existing environment does not remove files that have been deleted | charmcraft | closed | Closed as a duplicate of charmcraft#710 by maintainer facundobatativa (facundobatista) on 2022-04-13. #710 remains open, with the root cause tracked upstream in craft-parts#851. | |
| #552 `charmcraft pack` runs indefinitely when using parts | charmcraft | closed | The hang was caused by duplicated local-source ignore patterns in Charmcraft 1.2.1 and fixed in 1.3.0 via canonical/craft-parts#120 (commit 280e1592). | |
| #1160 `charmcraft pack` does not recognize updated `charmcraft.yaml` file | charmcraft | open | Tracked upstream: charmcraft pack ignores build-snaps channel changes in charmcraft.yaml unless clean is run. Root cause is craft-parts#496 (build-snaps missing from properties_of_interest), still unfixed; charmcraft only needs a craft-parts bump once patched. | |
| #497 charmcraft Pack is not Working | charmcraft | closed | Packaging succeeded after using the project owner with LXD permissions and cleaning stale state; the reporter confirmed the .charm file was created. | |
| #640 Unable to build charm due to "no such file or directory" | charmcraft | closed | Closed as not reproducible on 13 July 2023 after more than a year of inactivity; no Charmcraft fix was identified for the missing .tox log-copy failure. | |
| #2016 Unable to pack charm with poetry plugin `'PartInfo' has no attribute 'dependencies'` | charmcraft | closed | Fixed in canonical/craft-parts#922 (commit 50b75f80), released in craft-parts 2.1.4; Charmcraft edge included the fix when #2016 was closed. | |
| #710 `charmcraft pack` retains no longer existing files from previous packs | charmcraft | open | Repacking reuses the part's build container, so files deleted from the working tree linger in the resulting charm until `charmcraft clean <part>`. Maintainers confirmed it still reproduces; root cause tracked upstream in craft-parts#851. | |
| #701 `charmcraft pack` doesn't include all error output | charmcraft | closed | Missing charmcraft pack error output was fixed in Charmcraft 1.5 through improved managed-instance log retrieval; the reporter was using 1.4.0, so the issue was closed. | |
| #2081 `charmcraft pack` fail while packing `cos-proxy-operator` | charmcraft | closed | Fixed by PR #2043 (commit 47fb62f3), which adds libffi-dev to the charm part's build-packages so cffi builds find ffi.h. Shipped in Charmcraft 3.3; maintainer closed the issue, marking the 2.7 path WONTFIX. |