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

Skip blank build tags #1

Merged
merged 1 commit into from
Oct 3, 2018
Merged

Skip blank build tags #1

merged 1 commit into from
Oct 3, 2018

Conversation

janos
Copy link
Contributor

@janos janos commented Oct 3, 2018

Hi. Genesis is a simple and great package, a great candidate to replace go-bindata. This PR addresses the build tag issue.

When no --tags flag is provided, strings.Split function creates a slice with one blank string making the generated file contains only // +build line without any tags in it, preventing build completely. This PR change handles other cases where any tags string is blank, which is possible when , is the first or last character in --tags flag argument, and also if , repeated without any other characters in between.

@benbjohnson benbjohnson merged commit 0f31e11 into benbjohnson:master Oct 3, 2018
@benbjohnson
Copy link
Owner

@janos Thanks for the fix. That was a dumb bug, lol. :)

I tagged a new v0.1.2 release with the fix.

@janos
Copy link
Contributor Author

janos commented Oct 4, 2018

Thanks @benbjohnson :)

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.

None yet

2 participants