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

Add version command #24

Merged
merged 1 commit into from
Jul 17, 2018
Merged

Add version command #24

merged 1 commit into from
Jul 17, 2018

Conversation

marcomorain
Copy link
Contributor

No description provided.

@marcomorain marcomorain requested a review from zzak July 17, 2018 09:35
@marcomorain marcomorain force-pushed the version-command branch 2 times, most recently from c770198 to 255052f Compare July 17, 2018 09:36
@codecov-io
Copy link

codecov-io commented Jul 17, 2018

Codecov Report

Merging #24 into master will increase coverage by 0.25%.
The diff coverage is 62.5%.

Impacted file tree graph

@@            Coverage Diff            @@
##           master     #24      +/-   ##
=========================================
+ Coverage   41.34%   41.6%   +0.25%     
=========================================
  Files          10      11       +1     
  Lines         653     661       +8     
=========================================
+ Hits          270     275       +5     
- Misses        361     363       +2     
- Partials       22      23       +1
Impacted Files Coverage Δ
cmd/root.go 75% <100%> (+0.49%) ⬆️
cmd/version.go 57.14% <57.14%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update fe0d7e6...a0beed2. Read the comment docs.

@marcomorain marcomorain force-pushed the version-command branch 3 times, most recently from 964395c to fb368a6 Compare July 17, 2018 10:05
Copy link

@endocrimes endocrimes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall lgtm, one question.

.goreleaser.yml Outdated
@@ -15,3 +15,5 @@ builds:
- linux
goarch:
- amd64
ldflags:
- -s -w -X version.Version={{.Version}} -X version.Commit={{.Commit}}

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You may want to add a comment here explaining why you add -s and -w with a link to https://golang.org/cmd/link/

@marcomorain
Copy link
Contributor Author

@marcomorain marcomorain merged commit 1fd51d2 into master Jul 17, 2018
@marcomorain marcomorain deleted the version-command branch July 17, 2018 12:38
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.

3 participants