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

provide a version command #246

Closed
casualjim opened this issue Jan 31, 2016 · 2 comments
Closed

provide a version command #246

casualjim opened this issue Jan 31, 2016 · 2 comments

Comments

@casualjim
Copy link
Member

Provide a version command for go-swagger

@Xe
Copy link
Contributor

Xe commented Feb 1, 2016

This is a nontrivial thing to do in Go due to the lack of compile-time code execution.

@casualjim
Copy link
Member Author

I figured since I'm signing tags, I'd add a pre-commit hook which generates a go file with a version string in there that I can get from git describe.

git:(master) ✗ !? » git describe
v0.2.0-163-g11157eb

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

No branches or pull requests

2 participants