Skip to content

topdown/tokens_test: adjust expected signature for go1.18.1 #4580

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

Merged
merged 1 commit into from
Apr 13, 2022

Conversation

srenatus
Copy link
Contributor

@srenatus srenatus commented Apr 13, 2022

Go 1.18.1 was released last night -- and while it doesn't change
the signatures, it changes what runtime.Version() returns.

Our test expectation didn't account for that.

We've been pulling in go1.18.1 because our .go-version has 1.18 in it,
and the docker image ref built from that for the ci-go-* make targets
will use golang:1.18, which refers to the latest patch release.

johanfylling
johanfylling previously approved these changes Apr 13, 2022
Copy link
Contributor

@johanfylling johanfylling left a comment

Choose a reason for hiding this comment

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

LGTM 👍

encodedSigned = "eyJhbGciOiAiRVMyNTYifQ.eyJwYXkiOiAibG9hZCJ9.-LoHxtbT8t_TnqlLyONI4BtjvfkySO8TcoCFENqTTH2AKxvn29nAjxOdlbY-0EKVM2nJ4ukCx4IGtZtuwXr0VQ"
case "go1.18.1":
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this case needed?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Oh wait what did I do? This is probably wrong. I'll fix it.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ah now I see what happened. The signature didn't change, but the runtime.Version string did 🤦

@srenatus srenatus marked this pull request as ready for review April 13, 2022 09:04
Go 1.18.1 was released last night -- and while it doesn't change
the signatures, it changes what `runtime.Version()` returns.

Our test expectation didn't account for that.

We've been pulling in go1.18.1 because our .go-version has 1.18 in it,
and the docker image ref built from that for the `ci-go-*` make targets
will use golang:1.18, which refers to the latest patch release.

Signed-off-by: Stephan Renatus <[email protected]>
@srenatus srenatus merged commit 05dad98 into open-policy-agent:main Apr 13, 2022
@srenatus srenatus deleted the sr/go-1.18.1 branch April 13, 2022 09:23
rokkiter pushed a commit to rokkiter/opa that referenced this pull request Apr 18, 2022
…icy-agent#4580)

Go 1.18.1 was released last night -- and while it doesn't change
the signatures, it changes what `runtime.Version()` returns.

Our test expectation didn't account for that.

We've been pulling in go1.18.1 because our .go-version has 1.18 in it,
and the docker image ref built from that for the `ci-go-*` make targets
will use golang:1.18, which refers to the latest patch release.

Signed-off-by: Stephan Renatus <[email protected]>
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.

2 participants