fatal: detected dubious ownership in repository at '/root/project' when ran with --use-lxd
Metadata
Current evaluation
Snapcraft fails with Git dubious ownership error when using --use-lxd due to root execution in LXD. Requires safe.directory config. Open, unassigned, inactive for months, needs triage.
Suggested action: close stale
Reason: The issue is over 3 years old with zero maintainer interaction or updates. It references Snapcraft 7.1.3, which is significantly outdated, and the Git safe.directory warning is a known environment configuration issue that is highly unlikely to be reproducible or relevant in current versions.
Staleness:
95
Complexity:
20
Confidence:
85
Support Request:
15
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 |
|---|---|---|---|---|
| 2026-06-19 05:51:01.074549+00:00 | qwen3.6-35b-a3b-mtp-q6 |
Staleness:
95
Complexity:
20
Confidence:
85
Support Request:
15
|
close stale | Snapcraft fails with Git dubious ownership error when using --use-lxd due to root execution in LXD. Requires safe.directory config. Open, unassigned, inactive for months, needs triage. |
| 2026-06-19 05:48:34.749587+00:00 | pending | — | — | — |