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

Bump golang dependencies #56

Merged

Conversation

danail-branekov
Copy link
Member

Commands used to bump dependencies

go get -t -u ./...
go mod tidy

We had to pin the versions below as they have eveloved incompatibly

  • github.com/coreos/bbolt to v1.3.0
  • google.golang.org/grpc to v1.29.1
    Those are transitive dependencies pulled by github.com/google/certificate-transparency-go which has not adopted newer versions yet

We also had to pin k8s.io/client-go to v0.19.2 as bumping
depdndencies with the commands above brings v11.0.0 which is a pretty
old tag

We also fixed the script to generate counterfeiter fakes as it seems
that the syntax of the generate command in newer versions changed.

[#175054068]

Co-authored-by: Georgi Dankov gddankov@gmail.com
Co-authored-by: Danail Branekov danailster@gmail.com

Commands used to bump dependencies

```
go get -t -u ./...
go mod tidy
```

We had to pin the versions below as they have eveloved incompatibly
* github.com/coreos/bbolt to v1.3.0
* google.golang.org/grpc to v1.29.1
Those are transitive dependencies pulled by `github.com/google/certificate-transparency-go` which has not adopted newer versions yet

We also had to pin `k8s.io/client-go` to `v0.19.2` as bumping
depdndencies with the commands above brings v11.0.0 which is a pretty
old tag

We also fixed the script to generate counterfeiter fakes as it seems
that the syntax of the `generate` command in newer versions changed.

[#175054068]

Co-authored-by: Georgi Dankov <gddankov@gmail.com>
Co-authored-by: Danail Branekov <danailster@gmail.com>
@@ -1,22 +1,80 @@
module code.cloudfoundry.org/eirinix

replace (
github.com/coreos/bbolt => github.com/coreos/bbolt v1.3.0
google.golang.org/grpc => google.golang.org/grpc v1.29.1
Copy link
Member

Choose a reason for hiding this comment

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

just as a reminder: golang/go#30354

modules depending on won't respect the replace directive, so for e.g. grpc here is affected

Copy link
Member Author

Choose a reason for hiding this comment

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

Sigh... I know that. Without those replace statements the code does not compile :( We have the very same replace lines in Eirini as well.
I wish people (I am looking at you, Google) bumped their dependencies more regularly!

@mudler mudler merged commit 52454f2 into cloudfoundry-incubator:master Oct 5, 2020
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