Skip to content

Conversation

@knocte
Copy link
Collaborator

@knocte knocte commented Nov 21, 2025

We use the git describe command to prevent release-notes commits to create nuget prereleases for commits that have already been tagged as a "non-pre" release; see: fa788db

However, this stopped working since someone upgraded the checkout action to v4:
a2b2d94

What must be happening is that this new version of this action now uses a depth of 1 by default, to save bandwidth, and then the command git describe fails with this error:

fatal: No names found, cannot describe anything.

There's a good StackOverflow entry about this issue, and someone recommends fetch-depth: 0 there to fix it: https://stackoverflow.com/questions/4916492/git-describe-fails-with-fatal-no-names-found-cannot-describe-anything#comment118391143_45993185

We use the `git describe` command to prevent release-notes
commits to create nuget prereleases for commits that
have already been tagged as a "non-pre" release; see:
fa788db

However, this stopped working since someone upgraded the
checkout action to v4:
a2b2d94

What must be happening is that this new version of this
action now uses a depth of 1 by default, to save bandwidth,
and then the command `git describe` fails with this error:

```
fatal: No names found, cannot describe anything.
```

There's a good StackOverflow entry about this issue, and
someone recommends `fetch-depth: 0` there to fix it:
https://stackoverflow.com/questions/4916492/git-describe-fails-with-fatal-no-names-found-cannot-describe-anything#comment118391143_45993185
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant