Skip to content
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

golang: 1.20.7 -> 1.21 #6189

Merged
merged 4 commits into from
Aug 29, 2023
Merged

Conversation

srenatus
Copy link
Contributor

@srenatus srenatus commented Aug 29, 2023

Chore: Update Golang used for building OPA. Release notes

@srenatus
Copy link
Contributor Author

--- FAIL: TestJSONSerialization (0.00s)
    prometheus_test.go:142: unexpected extra metrics, expected 72, got 96

😆 great

@srenatus
Copy link
Contributor Author

A few previously-internal GC metrics, such as live heap size, are now available.

I guess that's you

@srenatus srenatus marked this pull request as ready for review August 29, 2023 12:18
Signed-off-by: Stephan Renatus <[email protected]>
What was correct for 1.20 is correct for 1.21, so I've flipped the
exception logic.

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

default:
return false
}
return true
Copy link
Contributor

Choose a reason for hiding this comment

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

Fallthrough not being the default in go still requires me to think twice 😅.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

sorry my slightly obnoxious way to avoid || and && 😅

@srenatus srenatus merged commit f8e1e4b into open-policy-agent:main Aug 29, 2023
24 checks passed
@srenatus srenatus deleted the sr/bump/golang-1.21 branch August 29, 2023 13:26
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