-
Notifications
You must be signed in to change notification settings - Fork 811
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: remove references to vgo #206
Conversation
I don't like this change unless we are also running it in Travis. We have certainly had issues in the past where updated modules that we didn't have locally broke the build. Remember when I was steadfastly not using So unless this PR also modifies the Travis CI build to use Isn't |
I'm taking precedence from this post by @rsc, specifically:
It seems better to phrase the installation instructions in terms of stable features. We could try to do a mixed go and vgo build (I have this set up for gg, for instance), but I worry that we wouldn't be able to figure out what versions |
I'm not saying we shouldn't do it, just that if we do do this it has to have the Travis build modified. A hybrid build is fine for me. We can't put ourselves in a position where we're instructing customers to something different to what we are doing locally, but we aren't automatically testing that workflow. |
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.
Navigating the transition to Go modules is a little tricky. We want to provide a good experience for users who haven't adopted modules while likewise making modules easy to use with Go Cloud. For now, we're probably OK with instructions to use vgo, but we'll need to update those to point to the beta release of Go 1.11 when it becomes available, I think.
CONTRIBUTING.md
Outdated
@@ -48,7 +48,7 @@ While we figure out how to properly generate replay files for contributors, writ | |||
|
|||
## Making a pull request | |||
* Follow the normal [pull request flow](https://help.github.com/articles/creating-a-pull-request/) | |||
* Build your changes using `vgo build .`, _do not use `go`_. Go Cloud only supports `vgo` in order to ensure [reproducible builds](https://research.swtch.com/vgo-repro). | |||
* Build your changes using `vgo build .`, _do not use `go`_. Go Cloud CI uses `vgo` in order to ensure [reproducible builds](https://research.swtch.com/vgo-repro). |
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.
With vgo merged into Go's develop branch, I think "Go modules" is the preferred term. Perhaps we should call out support for modules with Go 1.11 beta 2 (?) instead of vgo.
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.
Done.
I think it would be OK to say that you're maintaining your dependencies with the Go modules as will be shipping in Go 1.11, and that if people need to modify the set of dependencies then they should use that. We're looking at beta2 with module support going out tomorrow. If you really need to support pre-Go1.11 users the thing to do would be to run 'go mod -vendor' and check in the vendor directory. But that's just going to blow up the repo for a temporary need. |
As another data point, @ijt ran into #208 because Wire does not handle loading Go modules (#78). I think it's important to keep people on GOPATH for a bit until we can address the tooling issue. If dependencies make breaking changes, we can update the go.mod file as needed. |
I don't have any strong feelings either way on whether to wait or change. @ijt modified some docs for #208 FWIW. |
We should be instructing users to run stable things, and more adventurous folks can adapt to use Go modules. I just ran the test suite locally from a `go get` and it compiled and ran fine. Updates #78 Updates #208
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.
PTAL
CONTRIBUTING.md
Outdated
@@ -48,7 +48,7 @@ While we figure out how to properly generate replay files for contributors, writ | |||
|
|||
## Making a pull request | |||
* Follow the normal [pull request flow](https://help.github.com/articles/creating-a-pull-request/) | |||
* Build your changes using `vgo build .`, _do not use `go`_. Go Cloud only supports `vgo` in order to ensure [reproducible builds](https://research.swtch.com/vgo-repro). | |||
* Build your changes using `vgo build .`, _do not use `go`_. Go Cloud CI uses `vgo` in order to ensure [reproducible builds](https://research.swtch.com/vgo-repro). |
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.
Done.
LGTM. Please wait for @ijt approval. |
LGTM. |
README.md
Outdated
$ cd go-cloud | ||
$ vgo install ./wire/cmd/gowire | ||
go get github.com/google/go-cloud | ||
go install github.com/google/go-cloud/wire/cmd/gowire |
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.
Why not go get for this also? It works as far as I can tell.
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.
Done.
We should be instructing users to run stable things, and more adventurous folks can adapt to use Go modules. I just ran the test suite locally from a `go get` and it compiled and ran fine. Updates google/go-cloud#78 Updates google/go-cloud#208
We should be instructing users to run stable things, and more adventurous folks can adapt to use Go modules. I just ran the test suite locally from a
go get
and it compiled and ran fine.