Skip to content
This repository has been archived by the owner on Mar 23, 2021. It is now read-only.

README: fix installation instructions #19

Merged
merged 1 commit into from
Oct 29, 2018

Conversation

myitcv
Copy link
Owner

@myitcv myitcv commented Oct 25, 2018

Using GO111MODULE=off go get is a simple, backwards compatible way to
bootstrap to using gobin.

Use v1.0.0-alpha.2 of gohack for examples.

@myitcv myitcv force-pushed the fix_installation_instructions branch 2 times, most recently from d4d0c72 to e9c6e53 Compare October 25, 2018 13:46
@myitcv myitcv requested a review from mvdan October 25, 2018 14:05
@myitcv myitcv force-pushed the fix_installation_instructions branch 3 times, most recently from b7af7b4 to d81fe27 Compare October 25, 2018 21:22
Copy link
Collaborator

@rogpeppe rogpeppe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems a bit awkward to me. If possible, it would be much nicer if people could bootstrap using just go get. How about keeping gobin development changes to their own branch (develop perhaps) so master tip always represents the latest tagged version, and use a vendor dir?

Not what we want to do for any other commands, of course, but gobin is our way of escaping this kind of stuff, so a nice way of bootstrapping with go get would be desirable, I think.

@myitcv myitcv force-pushed the fix_installation_instructions branch 8 times, most recently from ee633f9 to 8716f2d Compare October 28, 2018 13:53
@myitcv myitcv changed the base branch from master to vendor October 28, 2018 14:18
@@ -18,6 +18,8 @@ github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI=
github.com/onsi/ginkgo v1.6.0/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE=
github.com/onsi/gomega v1.4.1/go.mod h1:C1qb7wdrVGGVU+Z6iS04AVkA3Q65CEZX59MT0QO5uiA=
github.com/rogpeppe/go-internal v1.0.0 h1:o4VLZ5jqHE+HahLT6drNtSGTrrUA3wPBmtpgqtdbClo=
github.com/rogpeppe/go-internal v1.0.0 h1:o4VLZ5jqHE+HahLT6drNtSGTrrUA3wPBmtpgqtdbClo=
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'm unclear why these two lines are being added here... because it results in two rows being duplicated.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah, that doesn't seem quite right.

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Raised #21 to investigate at a later date

@myitcv
Copy link
Owner Author

myitcv commented Oct 28, 2018

@mvdan @rogpeppe - thanks for the feedback. Per Slack, this PR is now based on #20 (hence the latter has to go in first). Let me know what you think.

Copy link
Collaborator

@rogpeppe rogpeppe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM with one minor thought, thanks.

### Installation

```
$ GO111MODULE=off go get -u github.com/myitcv/gobin
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 actually need the GO111MODULE=off part here?

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, I think we do. Because otherwise, if the user is in the context of a module, it will modify that go.mod which is the whole complaint raised in golang/go#27643. I definitely want to side-step that here.

@@ -18,6 +18,8 @@ github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI=
github.com/onsi/ginkgo v1.6.0/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE=
github.com/onsi/gomega v1.4.1/go.mod h1:C1qb7wdrVGGVU+Z6iS04AVkA3Q65CEZX59MT0QO5uiA=
github.com/rogpeppe/go-internal v1.0.0 h1:o4VLZ5jqHE+HahLT6drNtSGTrrUA3wPBmtpgqtdbClo=
github.com/rogpeppe/go-internal v1.0.0 h1:o4VLZ5jqHE+HahLT6drNtSGTrrUA3wPBmtpgqtdbClo=
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah, that doesn't seem quite right.

@myitcv myitcv changed the base branch from vendor to master October 29, 2018 12:36
@myitcv myitcv force-pushed the fix_installation_instructions branch from 8716f2d to a4b7997 Compare October 29, 2018 12:38
Using GO111MODULE=off go get is a simple, backwards compatible way to
bootstrap to using gobin.
@myitcv myitcv force-pushed the fix_installation_instructions branch from a4b7997 to 5bf7dae Compare October 29, 2018 12:41
@myitcv myitcv merged commit f786eea into master Oct 29, 2018
@myitcv myitcv deleted the fix_installation_instructions branch October 29, 2018 12:53
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants