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: make sure binarie's the dependencies inherit the includes from the bpf target #11

Merged
merged 1 commit into from
Nov 21, 2022

Conversation

fntlnz
Copy link
Collaborator

@fntlnz fntlnz commented Nov 18, 2022

Error was:

error: build/.gens/api/linux/x86_64/release/api.h:87:10: fatal error: block_ip.skel.h: No such file or directory
   87 | #include "block_ip.skel.h"
      |          ^~~~~~~~~~~~~~~~~

…he bpf target

Error was:
error: build/.gens/api/linux/x86_64/release/api.h:87:10: fatal error: block_ip.skel.h: No such file or directory
   87 | #include "block_ip.skel.h"
      |          ^~~~~~~~~~~~~~~~~
@fntlnz fntlnz requested a review from leodido November 18, 2022 16:09
@@ -12,6 +12,7 @@ target("traffico")
set_default(true)
includes("api")
add_deps("api")
add_deps("bpf")
Copy link
Owner

Choose a reason for hiding this comment

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

Leaving a note for the future myself.

This add_deps should not be needed because the "api" target already brings it as a transitive dependency.

@@ -2,7 +2,7 @@
set_xmakever("2.6.1") -- Minimum version to compile BPF source correctly

-- includes
includes("xmake/repos.lua")
includes("../xmake/repos.lua")
Copy link
Owner

Choose a reason for hiding this comment

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

Thanks for spotting this!

@leodido leodido merged commit c80b951 into main Nov 21, 2022
@leodido leodido deleted the fix/deps-lifecycle branch November 21, 2022 10:49
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