← Back to issue list

`git describe` in an `override-build` is always claiming to be dirty

View original Github issue

Metadata

Project
snapcraft
Number
#5831
Type
issue
State
open
Author
lengau
Labels
Status: Triaged Type: Bug
Created
2025-10-15 21:39:07+00:00
Updated
2025-10-15 21:39:30+00:00
Closed

Current evaluation

No evaluation has been recorded for this issue yet.

Issue body

### Bug Description If you have a `spread/.extension` file, `git describe --dirty` in an override-build will always show the repo as dirty because `spread.yaml` and `spread/.extension` don't get copied into the build directory. This is causing Charmcraft 4.0.0 to appear to be dirty. ### To Reproduce Check out the 4.0.0 tag of Charmcraft and pack it ### Environment My machine, launchpad, etc... ### snapcraft.yaml ```yaml ... ``` ### Relevant log output ```shell n/a ``` ### Additional context _No response_

Evaluation history

No evaluation history available.