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

slog: only include for golang 1.21+ #2162

Merged
merged 1 commit into from
Oct 13, 2023
Merged

Conversation

srenatus
Copy link
Contributor

@srenatus srenatus commented Oct 12, 2023

This puts the slog-related bits into files that carry a build constraint of go1.21, i.e. are built only with golang 1.21 and higher.

Effectively, it allows us to keep go 1.20 in go.mod, allowing benthos to be used in projects that still support golang 1.20.

This puts the slog-related bits into files that carry a build constraint
of go1.21, i.e. are build only with golang 1.21 _and higher_.

Effectively, it allows us to keep `go 1.20` in go.mod, allowing benthos
to be used in projects that still support golang 1.20.

Signed-off-by: Stephan Renatus <stephan@styra.com>
@srenatus srenatus marked this pull request as ready for review October 12, 2023 09:49
Copy link
Collaborator

@Jeffail Jeffail left a comment

Choose a reason for hiding this comment

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

Oh nice, thanks for setting this up @srenatus, I think I mistakenly thought this wasn't available yet due to golang/go#59033 remaining open but I guess it works.

@Jeffail Jeffail merged commit 99568f7 into redpanda-data:main Oct 13, 2023
3 checks passed
@srenatus srenatus deleted the sr-go-1.20 branch October 13, 2023 08:14
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