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

Build, test and format with Go 1.19, minimum 1.18 #765

Merged
merged 4 commits into from
Aug 23, 2022

Conversation

ti-mo
Copy link
Collaborator

@ti-mo ti-mo commented Aug 22, 2022

No description provided.

@ti-mo ti-mo requested a review from lmb August 22, 2022 14:09
@ti-mo ti-mo force-pushed the tb/go-1.19 branch 2 times, most recently from 8dd84c5 to fac5ae9 Compare August 22, 2022 14:17
internal/errors.go Show resolved Hide resolved
@ti-mo ti-mo force-pushed the tb/go-1.19 branch 2 times, most recently from d9a259b to a7d86d1 Compare August 22, 2022 19:18
ti-mo added 4 commits August 23, 2022 14:31
As we were not reaping the benefits from having a separate Go module for
examples/, remove it to ease maintenance.

Make examples buildable on GOOS=darwin by removing build tags and providing
constants. This became necessary after removing the module for examples/,
making those packages pop up in `go list`.

Same for examples/uretprobe. This calls bpf2go with -target native, which
only works when run on amd64 since other architectures are missing macros
for getting syscall parameters. Gate the build of uretprobe behind an amd64
tag to prevent it from failing due to missing a corresponding generated
bpf2go output .go file.

Signed-off-by: Timo Beckers <timo@isovalent.com>
Signed-off-by: Timo Beckers <timo@isovalent.com>
Format output docstrings according to 1.19 convention in bpf2go.

Signed-off-by: Timo Beckers <timo@isovalent.com>
Drop build tags from _fuzz.go as they're no longer required.

Signed-off-by: Timo Beckers <timo@isovalent.com>
@ti-mo ti-mo merged commit 9da42c2 into cilium:master Aug 23, 2022
@ti-mo ti-mo deleted the tb/go-1.19 branch August 23, 2022 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