You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Better handle situations where the working directory is not as expected.
This PR specifically covers two scenarios:
1. Building parts of goebpf that use cgo when the working directory does
not match the location of the target. We resolve this by removing
relative paths anywhere `bpf_helpers.h` is included, instead passing
that path as an `-I` argument to the compiler. This is done through a
`#cgo` directive in the source but allows this to be overridden
through other means such as a larger build system's CFLAGS.
2. Running the itest from a working directory other than `itest`. The
tests now search the working directory first (preserving prior
behavior) but also check for the image using the absolute path of the
executable.
0 commit comments