Skip to content
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

chore: Make generation of versioninfo.json work without tags or git repo #2566

Merged
merged 1 commit into from Nov 11, 2022

Conversation

twpayne
Copy link
Owner

@twpayne twpayne commented Nov 11, 2022

Previously, generating versioninfo.json required git describe --abbrev=0 --tags to succeed, which is not the case when chezmoi is forked (https://github.com/deivid-rodriguez/chezmoi/pull/2) or if chezmoi is built from a source archive (where there is no git repo). With this commit, versioninfo.json is generated in both cases, albeit without a correct version or commit hash. This allows the test-release job to succeed on forks.

cc @deivid-rodriguez

@twpayne
Copy link
Owner Author

twpayne commented Nov 11, 2022

Hm, well it looks like deivid-rodriguez deleted his fork, but this is still a bug fix :)

@twpayne twpayne merged commit b6039e7 into master Nov 11, 2022
@twpayne twpayne deleted the versioninfo-fork branch November 11, 2022 18:25
@deivid-rodriguez
Copy link

Yes, it was just for testing dependabot PR generation, but thanks for caring and fixing these things!

@twpayne
Copy link
Owner Author

twpayne commented Nov 11, 2022

Thank you for your work on dependabot :)

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 16, 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.

None yet

2 participants