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

Docwhat feedback #1

Merged
merged 4 commits into from
Jul 31, 2017
Merged

Docwhat feedback #1

merged 4 commits into from
Jul 31, 2017

Conversation

benjdewan
Copy link
Owner

No description provided.

ben dewan added 2 commits July 31, 2017 09:47
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
Copy link
Collaborator

@docwhat docwhat left a 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
Copy link
Collaborator

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)"
Copy link
Collaborator

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"
Copy link
Collaborator

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.

Copy link
Owner Author

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.

Copy link
Collaborator

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
@benjdewan benjdewan merged commit 4852f34 into master Jul 31, 2017
@benjdewan benjdewan deleted the docwhat-feedback branch July 31, 2017 17:13
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.

2 participants