-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Docs: use a simple clone in the New Beat guide #6786
Conversation
The previous version used `go get` as a trick to clone the repository in the correct path. However: * the extra magic can be confusing * the `go get` results in an error (no buildable Go files). The docs were telling the reader to ignore the error, but it seems the wording of the error is different now. I think it's better to use a simple `git clone`, which is what we use also in the main Contributing guide.
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.
LGTM
|
||
[source,shell] | ||
---------------------------------------------------------------------- | ||
go get github.com/elastic/beats | ||
mkdir -p ${GOPATH}/src/github.com/elastic |
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 remember this being our initial version but people struggled with setting the GOPATH. Now that since the more recent golang versions have a predefined go path, this should be less of an issue.
The previous version used `go get` as a trick to clone the repository in the correct path. However: * the extra magic can be confusing * the `go get` results in an error (no buildable Go files). The docs were telling the reader to ignore the error, but it seems the wording of the error is different now. I think it's better to use a simple `git clone`, which is what we use also in the main Contributing guide.
The previous version used `go get` as a trick to clone the repository in the correct path. However: * the extra magic can be confusing * the `go get` results in an error (no buildable Go files). The docs were telling the reader to ignore the error, but it seems the wording of the error is different now. I think it's better to use a simple `git clone`, which is what we use also in the main Contributing guide.
The previous version used `go get` as a trick to clone the repository in the correct path. However: * the extra magic can be confusing * the `go get` results in an error (no buildable Go files). The docs were telling the reader to ignore the error, but it seems the wording of the error is different now. I think it's better to use a simple `git clone`, which is what we use also in the main Contributing guide.
The previous version used
go get
as a trick to clone the repositoryin the correct path. However:
go get
results in an error (no buildable Go files). The docswere telling the reader to ignore the error, but it seems the wording
of the error is different now.
I think it's better to use a simple
git clone
, which is what weuse also in the main Contributing guide.