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

Fix $GOPATH/src paths in generated README #3607

Merged
merged 3 commits into from
Feb 16, 2017
Merged

Fix $GOPATH/src paths in generated README #3607

merged 3 commits into from
Feb 16, 2017

Conversation

7AC
Copy link
Contributor

@7AC 7AC commented Feb 16, 2017

The src prefix was missing

7AC added 2 commits November 10, 2016 09:37
"go install" won't work when beats is not installed in the GOPATH (e.g.,
it's vendored).

Fixes #2974
7AC referenced this pull request Feb 16, 2017
Currently cookiecutter is needed to generate a beat. This adds an additional dependency to generate a beat and does not give us a lot of control over which checks should be executed during execution. As our template is quite simple it can be done with basic string replacements. A simple python script is now done for the task which leads to less inputs needed by the user and allows us to do checks like GOPATH setup etc.

The script could potentially be done in Golang but the setup of python is needed anyways for development.

Further changes:

* Rename .go files to .go.tmpl so they are not checked for correct syntax
* Update documentation

NOTES:
* Changes for the metricbeat generator will follow in a second PR.
* Blog post about creating a beat should be updated to point to 5.1. See #3197
The beat needs to go in $GOPATH/src instead of $GOPATH

Fixes aristanetworks/openconfigbeat#4
@elasticmachine
Copy link
Collaborator

Jenkins standing by to test this. If you aren't a maintainer, you can ignore this comment. Someone with commit access, please review this and clear it for Jenkins to run.

1 similar comment
@elasticmachine
Copy link
Collaborator

Jenkins standing by to test this. If you aren't a maintainer, you can ignore this comment. Someone with commit access, please review this and clear it for Jenkins to run.

@tsg
Copy link
Contributor

tsg commented Feb 16, 2017

jenkins, test it

@ruflin ruflin merged commit b577dcd into elastic:master Feb 16, 2017
@ruflin
Copy link
Member

ruflin commented Feb 16, 2017

@7AC Thanks for fixing the README. Unfortunately CI didn't help to detect this one :-(

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.

4 participants