-
Notifications
You must be signed in to change notification settings - Fork 1
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
Docwhat feedback #1
Conversation
Releases were not working because `git clean` was being on called on the repo by travis and I was unaware of that
This way a person does not need to manually verify that the release version in the code is in sync with the release tags
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.
I'm "meh". The changes would be "nice-to-have" but not critical.
.gitignore
Outdated
@@ -3,3 +3,7 @@ | |||
vendor/github.com/ | |||
vendor/golang.org/ | |||
vendor/gopkg.in/ | |||
pachelbel |
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.
leading /
characters? Ditto for the /vendor
as well?
Makefile
Outdated
@@ -1,4 +1,4 @@ | |||
CC=gcc | |||
LDFLAGS="-X github.com/benjdewan/pachelbel/cmd.version=$(shell git describe --tags || echo DEV-BUILD)" |
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.
Do you really need the whole github.com/...
part?
@@ -26,7 +26,7 @@ import ( | |||
"github.com/spf13/cobra" | |||
) | |||
|
|||
const version string = "v0.1.2" | |||
var version string = "DEV-BUILD" |
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.
Shouldn't the version be in main
? The CLI's version isn't that interesting, but the version of whatever it does is.
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.
I thought
$ pachelbel version
was nicer than
$ pachelbel -version
And you can't reference the main
package from cmd
since that would create a cycle.
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.
Fair enough; I haven't read through the code yet.
* Add leading '/' characters to .gitignore paths * Shorten the import path
No description provided.