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

examples: avoid depending on internal packages #1289

Merged
merged 1 commit into from
Mar 22, 2024

Conversation

ti-mo
Copy link
Collaborator

@ti-mo ti-mo commented Jan 2, 2024

Technically this builds fine in CI, but these are supposed to function from outside the repo's ebpf module as well. These internal references were added after we removed the separate Go module from examples/.

Supersedes #1288

Thanks @antoniomerlin for reporting!

@ti-mo
Copy link
Collaborator Author

ti-mo commented Jan 2, 2024

Turns out binary.NativeEndian was only merged in Go 1.21. Converting to draft until we drop support for 1.20.

@ti-mo ti-mo marked this pull request as draft January 2, 2024 15:41
@ti-mo ti-mo changed the title examples: avoid depending on internal packages [Go 1.22] examples: avoid depending on internal packages Jan 15, 2024
@paulcacheux
Copy link
Contributor

@ti-mo I think this should be good now

@lmb lmb force-pushed the tb/examples-internal-package branch from c0fcb75 to 02ad905 Compare March 22, 2024 10:19
@lmb
Copy link
Collaborator

lmb commented Mar 22, 2024

@ti-mo can you fix the DCO violation?

Technically this builds fine in CI, but these are supposed to function from
outside the repo's ebpf module as well. These internal references were added
after we removed the separate Go module from examples/.

Signed-off-by: antoniomerlin <4397319+antoniomerlin@users.noreply.github.com>
Signed-off-by: Timo Beckers <timo@isovalent.com>
@ti-mo ti-mo force-pushed the tb/examples-internal-package branch from 02ad905 to 5f0cd39 Compare March 22, 2024 14:12
@ti-mo ti-mo changed the title [Go 1.22] examples: avoid depending on internal packages examples: avoid depending on internal packages Mar 22, 2024
@ti-mo ti-mo marked this pull request as ready for review March 22, 2024 14:13
@ti-mo ti-mo merged commit cef96c3 into cilium:main Mar 22, 2024
15 checks passed
@ti-mo ti-mo deleted the tb/examples-internal-package branch March 22, 2024 14:17
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.

4 participants