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

feature: Add version command. #254

Merged
merged 1 commit into from
Apr 14, 2022
Merged

feature: Add version command. #254

merged 1 commit into from
Apr 14, 2022

Conversation

betterengineering
Copy link
Contributor

Overview

This change adds pixlet version to be able to determine which version of pixlet you are running 🎉 . Locally, this will default to a git commit. Our released versions will use the git tag, ex v0.17.1.

Considerations

I made sure this works locally, but I have no idea if the piping for the build system will work as expected. I also have no way to test on Windows:

make build && ./pixlet version
rm -f pixlet
rm -rf ./build
rm -rf ./out
go build -ldflags="-X 'tidbyt.dev/pixlet/cmd.Version=f61493c9c3cfbd3b4cd7809bbd08fff008e49c79'" -o pixlet tidbyt.dev/pixlet
Pixlet version: f61493c9c3cfbd3b4cd7809bbd08fff008e49c79

Changes

This commit adds a version command so that folks know what version of
pixlet they are currently using.
@betterengineering
Copy link
Contributor Author

Closes #191

@betterengineering betterengineering merged commit 55a573a into main Apr 14, 2022
@betterengineering betterengineering deleted the mark/add-version branch April 14, 2022 17:15
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