Skip to content

Commit

Permalink
Debugging - undo commit
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaelroquetto committed Feb 20, 2025
1 parent 3107a32 commit b7c986c
Showing 1 changed file with 25 additions and 1 deletion.
26 changes: 25 additions & 1 deletion bpf/build_ebpf.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,31 @@ func main() {
os.Exit(1)
}

cmd := exec.Command(OCI_BIN, "run", "--rm", "-v", wd+":/src", GEN_IMG)
{
cmd := exec.Command("ls", "-ld", wd)
o, err := cmd.Output()

if err != nil {
fmt.Println("ls err", err)
} else {
fmt.Printf("ls out: %s", o)
}
}

{
cmd := exec.Command("find", wd)
o, err := cmd.Output()

if err != nil {
fmt.Println("find err", err)
} else {
fmt.Printf("find out: %s", o)
}
}

fmt.Println("module root is", wd)
cmd := exec.Command(OCI_BIN, "run", "--rm", "-v", wd+":/src:rw", GEN_IMG)
fmt.Println("cmd is:", cmd.String())

stdoutPipe, stderrPipe, err := getPipes(cmd)

Expand Down

0 comments on commit b7c986c

Please sign in to comment.