Skip to content

fix: fix shallow clones not retrieving a valid semver #13609

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jun 21, 2024

Conversation

ethanndickson
Copy link
Member

@ethanndickson ethanndickson commented Jun 20, 2024

A shallow git clone of coder with --depth=1 won't have any git tags when running git tag.

version.sh currently doesn't properly handle this case, and sets the version to the empty string. This empty string is then read by buildinfo. This produces a broken build of coder server that is unable to start workspaces.

@ethanndickson ethanndickson merged commit 714f2ef into main Jun 21, 2024
27 checks passed
@ethanndickson ethanndickson deleted the ethan/versiontag branch June 21, 2024 14:02
@github-actions github-actions bot locked and limited conversation to collaborators Jun 21, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants