Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
x/tools/cmd/bundle: use caller's module version, not $GOPATH #32031
There are two bundled packages in $GOROOT/src/net/http:
A bundled package is a a package that gets fused in with another package to avoid an otherwise-circular dependency. (We can't just import golang.org/x/net/http2 from net/http as http2 implements interfaces using types in their signatures defined in net/http)
Currently, to update http2 in std you need to both update the go.mod+vendor files (for some of the http2 subpackages) as well as run the
The bundle appears to just gets it code from whatever you have on your disk in $GOPATH, though. It should use the same version from the current module ($GOROOT/src/go.mod).