← Back to issue list

Temporary repo for snapcraft remote-build has no git tags

View original Launchpad issue

Metadata

Project
snapcraft (launchpad)
Number
#1973199
Type
issue
State
closed
Author
~farshidtz
Labels
Created
Updated
Closed

Current evaluation

⚠️ This summary may be outdated — the issue content or evaluation prompts have changed since this evaluation was made.

Closed without resolution, likely abandoned. The report details snapcraft remote-build creating a temporary repository without git tags, breaking version detection via snapcraftctl set-version.

Suggested action:

No scores available.

Issue body

I have a snap which uses `snapcraftctl set-version` to set its version from the latest Git tag. The `snapcraft remote-build` fails to get the tag and set the right version. This is because the temporary remote source repo created and used for the build has no tags. Note that this is NOT a problem when the version is taken using `version: git` in snapcraft.yml. In that case, remote build reads the git tag before sending the build data to Launchpad. The `snapcraft remote-build` first sends the build data to Launchpad by creating a temporary repository and using it to build the snap: ``` $ snapcraft remote-build snapcraft remote-build is experimental and is subject to change - use with caution. Using build ID snapcraft-edgexfoundry-6b554516408038f14366469d4579647b All data sent to remote builders will be publicly available. Are you sure you want to continue? [Y/n]: Y Packaging sources for static-packages... Packaging sources for postgres... Packaging sources for go-build-helper... Packaging sources for config-common... Packaging sources for hooks... Packaging sources for edgex-go... hint: Using 'master' as the name for the initial branch. This default branch name hint: is subject to change. To configure the initial branch name to use in all hint: of your new repositories, which will suppress this warning, call: hint: hint: git config --global init.defaultBranch <name> hint: hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and hint: 'development'. The just-created branch can be renamed via this command: hint: hint: git branch -m <name> Sending build data to Launchpad... (https://farshidtz:<token>@git.launchpad.net/~farshidtz/+git/snapcraft-edgexfoundry-6b554516408038f14366469d4579647b/) Enumerating objects: 58, done. Counting objects: 100% (58/58), done. Delta compression using up to 16 threads Compressing objects: 100% (50/50), done. Writing objects: 100% (58/58), 165.50 MiB | 5.05 MiB/s, done. Total 58 (delta 1), reused 0 (delta 0), pack-reused 0 To https://git.launchpad.net/~farshidtz/+git/snapcraft-edgexfoundry-6b554516408038f14366469d4579647b/ * [new branch] HEAD -> master ... ``` To verify, I cloned the temporary repo while the build was in progress and checked the tags: ``` $ git clone https://git.launchpad.net/~farshidtz/+git/snapcraft-edgexfoundry-6b554516408038f14366469d4579647b Cloning into 'snapcraft-edgexfoundry-6b554516408038f14366469d4579647b'... remote: Enumerating objects: 58, done. remote: Counting objects: 100% (58/58), done. remote: Compressing objects: 100% (50/50), done. remote: Total 58 (delta 1), reused 0 (delta 0) Receiving objects: 100% (58/58), 165.50 MiB | 3.00 MiB/s, done. Resolving deltas: 100% (1/1), done. $ cd snapcraft-edgexfoundry-6b554516408038f14366469d4579647b/ $ git tag $ git describe fatal: No names found, cannot describe anything. ``` Thanks!

Evaluation history

Date Model Scores Action Summary
qwen/qwen3.6-35b-a3b Closed without resolution, likely abandoned. The report details snapcraft remote-build creating a temporary repository without git tags, breaking version detection via snapcraftctl set-version.
qwen/qwen3.6-35b-a3b Closed without resolution or comments, likely abandoned due to inactivity. The reported bug regarding missing git tags in the snapcraft remote-build temporary repository remains unfixed.
qwen3.6-35b-a3b-mtp-q6 Abandoned. The temporary remote-build repository lacks git tags, breaking version detection via snapcraftctl set-version. Closed without resolution or comments.

Update history

No update history recorded yet.

Related issues

Issue Project State Summary Similarity
#1687967 git-tag does not support tags snapcraft (launchpad) closed Snapcraft incorrectly treated source tags as branches, causing clone failures. The report was closed without comments or resolution, indicating the issue was abandoned or rejected without a fix.
75%
#4142 snapcraft remote-build exits with return code 0 even when some snaps failed to build for a given arch snapcraft closed Closed without comments or resolution, indicating the request was abandoned. No official fix or merge details were provided.
72%
#1876123 remote-build failed snapcraft (launchpad) closed A snapcraft remote-build crash causing a NoneType error was closed without resolution or further discussion, indicating abandonment. No fix or merge details were provided.
72%
#4478 bug: remote-build broke in snapcraft 8.0 snapcraft closed Abandoned after investigation identified a libgit2 issue with large repositories causing SSL/broken pipe errors during remote builds. No fix was implemented.
71%
#1498212 setup.py based projects from remote sources broken snapcraft (launchpad) closed Remote setup.py projects failing during snapcraft builds were closed without resolution. Zero comments and no linked fixes indicate the report was abandoned due to prolonged inactivity.
71%
#1889535 Error is shown when git version is determined in a git worktree snapcraft (launchpad) closed Closed without resolution. Reported a snapcraft git version detection failure in worktrees caused by the build VM lacking access to the parent repository. No fix was implemented.
71%
#1943244 snapcraft remote-build not in the help information snapcraft (launchpad) closed Abandoned. Closed without resolution or comments. The missing remote-build command in snapcraft -h help output was not addressed.
70%