-
Notifications
You must be signed in to change notification settings - Fork 11
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 exception for version #10
Add exception for version #10
Conversation
Codecov Report
@@ Coverage Diff @@
## master #10 +/- ##
=======================================
Coverage 59.15% 59.15%
=======================================
Files 2 2
Lines 71 71
=======================================
Hits 42 42
Misses 27 27
Partials 2 2
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ww-daniel-mora Thanks for submitting this change! Got one suggestion below otherwise this looks great. Thanks for including tests too.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @ww-daniel-mora ! |
@leighmcculloch thanks! |
Current best practice for setting the version of a Go executable requires a global variable. This change adds a narrow exception for variables name Version exactly. It also adds tests to verify that and updates to README to explicitly state the permitted exceptions.