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

Docs: use a simple clone in the New Beat guide #6786

Merged
merged 1 commit into from
Apr 6, 2018

Conversation

tsg
Copy link
Contributor

@tsg tsg commented Apr 5, 2018

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.
@tsg tsg added docs needs_backport PR is waiting to be backported to other branches. review v7.0.0-alpha1 labels Apr 5, 2018
@tsg tsg requested review from dedemorton and ruflin April 5, 2018 20:59
Copy link
Contributor

@dedemorton dedemorton left a 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
Copy link
Contributor

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.

@ruflin ruflin merged commit 8246f8f into elastic:master Apr 6, 2018
dedemorton pushed a commit to dedemorton/beats that referenced this pull request May 2, 2018
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.
@dedemorton dedemorton removed the needs_backport PR is waiting to be backported to other branches. label May 2, 2018
ruflin pushed a commit that referenced this pull request May 3, 2018
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.
leweafan pushed a commit to leweafan/beats that referenced this pull request Apr 28, 2023
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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants