Skip to content

Update dependencies - #242

Merged
roidelapluie merged 2 commits into
prometheus:masterfrom
roidelapluie:desp
Aug 1, 2020
Merged

roidelapluie merged 2 commits into
prometheus:masterfrom
roidelapluie:desp

Conversation

@roidelapluie

Copy link
Copy Markdown
Member

Signed-off-by: Julien Pivotto roidelapluie@inuits.eu

Signed-off-by: Julien Pivotto <roidelapluie@inuits.eu>
@beorn7

beorn7 commented Jun 30, 2020

Copy link
Copy Markdown
Contributor

Eeeenteresting. Go 1.11 and go 1.12 create a slightly different go.mod, and that trips our tests. I guess that's happening because a dependency has different Go requirements for different versions? Not sure how to proceed from here. There are no build tags for go.mod files, I presume...

@brian-brazil

Copy link
Copy Markdown
Contributor

I thought we'd excluded some tests from go-specifc things. Was that just for linting?

Odd that it'd fail on 11&12 and not the surrounding versions.

@beorn7

beorn7 commented Jun 30, 2020

Copy link
Copy Markdown
Contributor

We have a test that makes sure that go mod tidy will not create any changes in the go.mod file.

However, as described above, it creates a diff for go 1.11 and go 1.12 because the checked in go.mod file is created with go 1.14. Go 1.10 and go 1.9 do not suffer because they have no module support at all.

I guess we could run the go mod tidy check only for the current go version. Just not sure if we should actually have different go.mod files for different go versions. That would be bad…

Signed-off-by: Julien Pivotto <roidelapluie@inuits.eu>
@roidelapluie

Copy link
Copy Markdown
Member Author

I have added the indirect dependency to the go.mod. Tests succeed now.

@simonpasquier

Copy link
Copy Markdown
Member

I thought we'd excluded some tests from go-specifc things. Was that just for linting?

Yes and for gofmt too.

@roidelapluie

Copy link
Copy Markdown
Member Author

Can we merge this?

@brian-brazil

Copy link
Copy Markdown
Contributor

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants