fatal: detected dubious ownership in repository at '/root/project' when ran with --use-lxd
Metadata
Current evaluation
snapcraft --use-lxd fails with Git dubious ownership error when using version: git. Issue is 4 years old with no maintainer interaction.
Suggested action: close stale
Reason: The --use-lxd flag has been deprecated in favor of Multipass in recent snapcraft versions. The issue is 4 years old with no maintainer interaction, and the affected feature is no longer the recommended approach. Users should migrate to Multipass for building snaps.
Impact:
20
Quick Win:
12.0
Staleness:
95
Complexity:
40
Confidence:
75
Support Request:
30
Issue body
Snapcraft 7.1.3 on Kinetic
```
mkdir foo
cd foo
snapcraft init
sed -i 's/version:.*/version: git/' snap/snapcraft.yaml
git init .
snapcraft --use-lxd # ... LP#1990297
snapcraft --use-lxd
# ...
Determining the version from the project repo (version: git).
fatal: detected dubious ownership in repository at '/root/project'
To add an exception for this directory, call:
git config --global --add safe.directory /root/project
Run the same command again with --debug to shell into the environment if you wish to introspect this failure.
```
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| qwen3.6-35b-a3b-mtp-q6 |
Impact:
20
Quick Win:
12.0
Staleness:
95
Complexity:
40
Confidence:
75
Support Request:
30
|
close stale | snapcraft --use-lxd fails with Git dubious ownership error when using version: git. Issue is 4 years old with no maintainer interaction. | |
| qwen/qwen3.6-35b-a3b |
Staleness:
90
Complexity:
20
Confidence:
85
Support Request:
30
|
close stale | Git dubious ownership error when running snapcraft with --use-lxd due to container UID mapping. Issue is over 3 years old with no maintainer engagement or comments. | |
| qwen/qwen3.6-35b-a3b |
Staleness:
95
Complexity:
25
Confidence:
85
Support Request:
90
|
close not a bug | Git safe.directory error when running snapcraft --use-lxd as root in a container. Issue is inactive for over 3 years with no maintainer response. | |
| qwen3.6-35b-a3b-mtp-q6 |
Staleness:
95
Complexity:
20
Confidence:
85
Support Request:
10
|
close stale | Snapcraft 7.1.3 fails with Git dubious ownership error when using --use-lxd due to container UID mapping. Issue is over three years old with no maintainer response or comments. | |
| qwen3.6-35b-a3b-mtp-q6 |
Staleness:
95
Complexity:
35
Confidence:
90
Support Request:
10
|
needs triage | Snapcraft fails with Git's dubious ownership error when using --use-lxd due to container root user mismatch. Remains unassessed after over three years. |
Update history
No update history recorded yet.
Related issues
No related issues found above the similarity threshold.