Skip to content
This repository has been archived by the owner on Nov 1, 2022. It is now read-only.

Migrate dependency management to Go modules #2083

Merged
merged 6 commits into from
May 24, 2019
Merged

Conversation

2opremio
Copy link
Contributor

Also:

  • Make $GOBIN work
  • Cache go modules

$GOPATH is not required anymore. @hiddeco @squaremo @stefanprodan make sure to move your Flux outside of $GOPATH once this is merged (the alternative is to prepend every single go invocation by GO111MODULE=on which I ended up discarding)

Alfonso Acosta added 3 commits May 23, 2019 16:32
Also, make everything work if `$GOBIN` is defined
@2opremio
Copy link
Contributor Author

Close, but no cigar :( kubernetes/kubernetes#67566

@squaremo
Copy link
Member

Close, but no cigar :( kubernetes/kubernetes#67566

lolk8s :-(

@2opremio
Copy link
Contributor Author

@2opremio 2opremio changed the title Move to Go modules from dep Migrate dependency management to Go modules May 23, 2019
@2opremio 2opremio marked this pull request as ready for review May 23, 2019 16:23
@2opremio 2opremio requested review from squaremo and hiddeco May 23, 2019 16:25
@2opremio
Copy link
Contributor Author

The build time goes down to 8.5 minutes since, unlike dep, go mod caches dependencies.

Copy link
Member

@hiddeco hiddeco left a comment

Choose a reason for hiding this comment

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

Cloned the project somewhere outside $GOPATH and checked out your branch, ran make, make test and make e2e, and everything seems to work. 💯

@2opremio
Copy link
Contributor Author

Great, you can actually stop defining GOPATH altogether

@2opremio 2opremio merged commit 4d7f78b into fluxcd:master May 24, 2019
@2opremio 2opremio deleted the go-mod branch May 24, 2019 11:56
@hiddeco hiddeco added this to the v1.13.0 milestone May 24, 2019
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