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

fix: Rewrite log level change without Go 1.19 features #1350

Merged
merged 2 commits into from Nov 16, 2022

Conversation

charithe
Copy link
Contributor

atomic.Bool is only available in Go 1.19 and users on older versions
of Go won't be able to download the SDK because of that. Since
atomic.Bool is not crucial for a correct implementation, we can revert
it this time.

Signed-off-by: Charith Ellawala charith@cerbos.dev

`atomic.Bool` is only available in Go 1.19 and users on older versions
of Go won't be able to download the SDK because of that. Since
`atomic.Bool` is not crucial for a correct implementation, we can revert
it this time.

Signed-off-by: Charith Ellawala <charith@cerbos.dev>
@github-actions github-actions bot added the kind/bug Something isn't working label Nov 15, 2022
@codecov
Copy link

codecov bot commented Nov 15, 2022

Codecov Report

Merging #1350 (2e240b1) into main (f3a294e) will increase coverage by 0.21%.
The diff coverage is n/a.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #1350      +/-   ##
==========================================
+ Coverage   54.68%   54.89%   +0.21%     
==========================================
  Files         111      111              
  Lines       12561    12563       +2     
==========================================
+ Hits         6869     6897      +28     
+ Misses       5120     5093      -27     
- Partials      572      573       +1     
Impacted Files Coverage Δ
internal/util/filesystem.go 76.31% <0.00%> (-2.07%) ⬇️
internal/engine/engine.go 63.29% <0.00%> (+0.70%) ⬆️
internal/storage/index/builder.go 84.46% <0.00%> (+7.28%) ⬆️
internal/compile/errors.go 51.56% <0.00%> (+15.62%) ⬆️

haines
haines previously approved these changes Nov 15, 2022
internal/observability/logging/logging.go Outdated Show resolved Hide resolved
@dbuduev
Copy link
Contributor

dbuduev commented Nov 15, 2022

Do we need to change Go version in the go.mod?

Signed-off-by: Charith Ellawala <charith@cerbos.dev>
@charithe
Copy link
Contributor Author

Do we need to change Go version in the go.mod?

Good catch! Didn't realise that Renovate changed it to 1.19.

@charithe charithe merged commit 1e33a52 into cerbos:main Nov 16, 2022
@charithe charithe deleted the fix/atomic-bool branch November 16, 2022 10:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants