remote-build is not copying files from root of repository
Metadata
Current evaluation
Closed as no longer reproducible with Snapcraft 9's new remote builder; the legacy builder was removed in snapcraft#5994, with no targeted copy fix recorded.
Resolution: closed superseded
Reason: ~mr-cal's final comment says the problem no longer reproduces with the new remote builder in Snapcraft 9. Snapcraft replaced the legacy implementation in #5239 and removed it in #5994.
Evaluated by: mr-cal-bot
No scores available.
Issue body
When doing a build, "snapcraft remote-build" is not copying all files in the repository to the remote build container, which implies that the build fails if we try to access them via $CRAFT_PROJECT_DIR".
For instance, the network-manager build fails when trying to copy a file:
https://git.launchpad.net/~snappy-hwe-team/snappy-hwe-snaps/+git/network-manager/tree/snap/snapcraft.yaml?h=1.36.6-2#n92
Or when applying a patch:
https://git.launchpad.net/~snappy-hwe-team/snappy-hwe-snaps/+git/network-manager/tree/snap/snapcraft.yaml?h=1.36.6-2#n140
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| stealth/space-bunny-alpha | — | closed superseded | Closed as no longer reproducible with Snapcraft 9's new remote builder; the legacy builder was removed in snapcraft#5994, with no targeted copy fix recorded. | |
| stealth/space-bunny-alpha | — | closed stale | The legacy remote-build file-copying failure no longer reproduced with Snapcraft 9’s new remote builder; no fixing PR or commit was identified before closure. | |
| stealth/space-bunny-alpha | — | closed resolved | Fixed by Snapcraft commit ab7c81969, which made remote-build preserve local repository sources. Snapcraft 9’s replacement remote builder also no longer reproduces the missing root-file failure. | |
| stealth/space-bunny-alpha | — | closed resolved | Remote-build now preserves local sources, including repository-root files referenced through $CRAFT_PROJECT_DIR; the fix is recorded in commit ab7c81969. | |
| stealth/space-bunny-alpha | — | closed stale | The missing root-file transfer report was closed without a documented fix, linked PR or commit, or maintainer explanation after 1326 days. | |
| qwen/qwen3.6-35b-a3b | — | — | Closed without resolution. The remote-build process failed to copy repository root files to the remote container, causing build failures when accessing files via $CRAFT_PROJECT_DIR. | |
| qwen/qwen3.6-35b-a3b |
Staleness:
98
Complexity:
40
Confidence:
85
Support Request:
10
|
close stale | Reports snapcraft remote-build failing to copy root repository files to the remote container, causing build failures. Issue is over 3 years old with no maintainer response or activity. | |
| qwen/qwen3.6-35b-a3b |
Staleness:
95
Complexity:
45
Confidence:
85
Support Request:
15
|
close stale | snapcraft remote-build fails to copy repository root files to the remote container, causing build failures when accessing files via $CRAFT_PROJECT_DIR. Unaddressed for over 3 years. | |
| qwen3.6-35b-a3b-mtp-q6 |
Staleness:
95
Complexity:
60
Confidence:
85
Support Request:
15
|
close stale | snapcraft remote-build fails to copy repository root files to the remote container, causing build failures when accessing files via $CRAFT_PROJECT_DIR. Untriaged, inactive for over 3 years. |
Update history
| Date | Change |
|---|---|
| created |
Related work
-
Superseded By:
snapcraft#5994
(confidence 95%)
Removed the legacy remote builder, leaving the new implementation used by Snapcraft 9.
-
Superseded By:
snapcraft#5239
(confidence 90%)
Migrated remote-build to craft-application's remote-build implementation.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #5676 remote build: remove legacy remote builder | snapcraft | closed | Fixed in merged PR #5994 (commit b08f1a66e) for Snapcraft 9.0 by removing the legacy remote builder, selection logic, strategy env var, and legacy credential support. | |
| #4479 remote-build broken with shallow clones | snapcraft | closed | Fixed in Snapcraft 8.0.1 by PR #4498 (commit 1e285148e), which falls back to the legacy remote builder for shallow Git clones on core20/core22. | |
| #4471 remote build: legacy builder doesn't send icon to Launchpad | snapcraft | closed | Closed won't fix: the current remote builder handles root-level icons; the affected legacy builder was removed in Snapcraft 9 by #5994 (b08f1a66e). | |
| #4365 remote-build: legacy builder complains about the wrong part name | snapcraft | closed | Core22 snaps hit a bogus schema error in the legacy remote-build fallback. Closed as "won't fix" by mr-cal on 2026-01-27; the legacy remote builder was removed in #5994 and #6010 for Snapcraft 9. | |
| #1979154 remote-build spams terminal | snapcraft (launchpad) | open | Legacy remote-build progress output spammed terminals in Snapcraft 7.0.7; the legacy builder was removed in Snapcraft 9.0, so the affected code path no longer exists. | |
| #4144 remote build: legacy builder cannot parse core22 snapcraft.yaml syntax | snapcraft | closed | Marked won't fix: legacy-builder schema support was descoped in favor of the new remote builder, which accepts build-for; legacy support was removed by PR #5994 in Snapcraft 9. | |
| #4142 snapcraft remote-build exits with return code 0 even when some snaps failed to build for a given arch | snapcraft | closed | Closed without a documented fix; later #4826 (552897340) only made remote-build fail when no artifacts were produced, not when some architecture builds failed. | |
| #5712 remote build: legacy builder should give a friendly error when passing `--project` | snapcraft | closed | Closed as won't fix: maintainer mr-cal said the UX tweak wasn't critical because the legacy remote builder is being removed in Snapcraft 9. That removal landed in merged PR #5994 (commit b08f1a66e), closing #5676. |