fix(remote): fallback to legacy snapcraft if under shallow git clone
Metadata
Current evaluation
Merged a fix falling back to legacy remote builds for shallow git clones, which cannot be pushed by design. Supports only core20 and core22 bases. Approved by two reviewers, passed CI, and modified 8 files.
Suggested action: —
No scores available.
Issue body
Git shallow clone is not pushable by design. Fallback to legacy remote build which has workaround. This only support core20 and core22. Any other bases and devel will report error.
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| qwen/qwen3.6-35b-a3b | — | — | Merged a fix falling back to legacy remote builds for shallow git clones, which cannot be pushed by design. Supports only core20 and core22 bases. Approved by two reviewers, passed CI, and modified 8 files. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Merged a fix falling back to legacy snapcraft for remote builds when using shallow git clones, which cannot be pushed by design. Supports only core20 and core22 bases; others report errors. Tests passed with maintained coverage. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Merged a fix that falls back to the legacy remote build for shallow git clones, resolving push failures. Applies only to core20 and core22 bases; other bases trigger an error. Tests passed with maintained coverage. |
Update history
No update history recorded yet.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #4895 fix(remotebuild): require core20 snaps to use the legacy remote builder | snapcraft | merged | Merged. Requires core20 snaps to use the legacy remote builder since the new builder cannot parse core20 snapcraft.yaml files. Resolves #4886. Approved and passed CI. | |
| #4479 remote-build broken with shallow clones | snapcraft | closed | Fixed via PR #4498. Snapcraft remote-build failed with shallow clones due to incorrect git reference resolution. The update corrects the push and branch mapping logic, restoring compatibility with shallow and standard repositories. | |
| #2720 remote build: switch from core to core18 | snapcraft | merged | Merged change switches remote build base from core to core18, aligning with snapcraft edge. Approved, passed CI, and modified one file. | |
| #4353 feat(remote-build): check SNAPCRAFT_REMOTE_BUILD_STRATEGY envvar | snapcraft | merged | Merged implementation of SNAPCRAFT_REMOTE_BUILD_STRATEGY environment variable to control remote build fallback for core22 and older bases. Approved by two reviewers, passed CI, and achieved 100% diff coverage. Resolves #4319. | |
| #4886 Use legacy remote builder for core20 snaps | snapcraft | closed | Superseded and closed pending dependency #4885. The legacy remote builder fallback for core20 snaps was deferred, with tracking moved to internal ticket CRAFT-3071. | |
| #3600 remote build: use channel defaults (CRAFT-568) | snapcraft | merged | Merged changes remove hardcoded channel forcing for snapcraft and core18 in remote builds, aligning with snapcraft's core20 transition. Approved and merged with a minimal diff. Launchpad now auto-selects the correct build-base. | |
| #3579 snap: move base to core20 (CRAFT-509) | snapcraft | merged | Merged updates the snap base to core20. Approved by two reviewers with passing CI checks. Changes affect 13 files, increase coverage by 0.07%, and update initialization templates to core20. |