← Back to issue list

Error is shown when git version is determined in a git worktree

View original Launchpad issue

Metadata

Project
snapcraft (launchpad)
Number
#1889535
Type
issue
State
closed
Author
~dennisschagt
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. Reported a snapcraft git version detection failure in worktrees caused by the build VM lacking access to the parent repository. No fix was implemented.

Suggested action:

No scores available.

Issue body

When running `snapcraft` in a git worktree, the build errors out with the following output: ``` <...> Priming newsboat Determining the version from the project repo (version: git). fatal: not a git repository: /home/dennis/projects/newsboat/.git/worktrees/newsboat-snap-worktree Run the same command again with --debug to shell into the environment if you wish to introspect this failure. ``` I expect this happens because the actual (non-worktree) repository is not accessible from within the build VM.

Evaluation history

Date Model Scores Action Summary
qwen/qwen3.6-35b-a3b 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.
qwen/qwen3.6-35b-a3b A snapcraft git version error in worktrees was closed without resolution. No fix or workaround was implemented, leaving the report abandoned.
qwen3.6-35b-a3b-mtp-q6 Reported snapcraft git worktree error was closed without comments or resolution, indicating the problem was abandoned with no fix applied.

Update history

No update history recorded yet.

Related issues

Issue Project State Summary Similarity
#1817907 building part with git source-commit not found in master fails snapcraft (launchpad) closed Closed without resolution due to inactivity. Snapcraft fails to checkout non-master git commits without a prior fetch, leaving the issue abandoned.
73%
#558 Managed snapping of craft applications from a `git worktree` will fail craft-application closed Rejected. The craft team decided not to support git worktrees in managed environments due to container path resolution issues. The issue was closed without a fix.
73%
#1973199 Temporary repo for snapcraft remote-build has no git tags snapcraft (launchpad) closed 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.
71%