-
When I use bpf2go of the latest version v0.11.0 to parse the ebpf file, I encounter the following problem: Error: can't write kmesh /home/gitee/fork/last-version/Kmesh/bpf/kmesh/bpf2go/kmeshcgroupsock_bpfel.go: 12:2: invalid import path: "": "" The check result shows that the file is in ebpf/internal/output.go. Strangely enough, you can manually copy it from an earlier version of cilium/ebpf. I want to know why the vendor directory generated by go mod vendor is missing files, and why the cilium/ebpf of v0.11.0 cannot be copied directly compared to the old version. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
This might be due to 223b7d7. Maybe |
Beta Was this translation helpful? Give feedback.
This might be due to 223b7d7. Maybe
debug.BuildInfo
returns something different when in vendor mode? Can you try extending the fallback in b04b758 to cover the case where the import path is""
?