Skip to content

fix(build): wire commandrun/ebpf submodule to unbreak Linux CI#22

Open
colek42 wants to merge 1 commit into
mainfrom
nk/fix-ebpf-gomod-drift
Open

fix(build): wire commandrun/ebpf submodule to unbreak Linux CI#22
colek42 wants to merge 1 commit into
mainfrom
nk/fix-ebpf-gomod-drift

Conversation

@colek42
Copy link
Copy Markdown
Contributor

@colek42 colek42 commented May 26, 2026

Summary

Main's Build (linux/amd64) and Build (linux/arm64) checks are currently red. They fail with:

missing go.sum entry for module providing package
github.com/aflock-ai/rookery/plugins/attestors/commandrun/ebpf
(imported by github.com/aflock-ai/rookery/plugins/attestors/commandrun)

rookery split its eBPF code into a separate Go submodule
(plugins/attestors/commandrun/ebpf), but cilock-action's go.mod never
added a require/replace for it. tracing_ebpf_linux.go is build-tagged
linux, so every Linux build of cilock-action against current rookery breaks.
(macOS/Windows builds don't compile that file, which is why only the Linux
checks are red.)

Fix

  • Add require + local replace for .../commandrun/ebpf (same pattern as
    every other rookery sibling module).
  • go mod tidy so go.sum picks up the submodule's transitive deps
    (github.com/cilium/ebpf et al).

Minimal diff: go.mod +3/-1, go.sum +12.

Verification

  • GOOS=linux go build ./cmd/cilock-action → exit 0 (was failing).
  • go build ./... + go test ./internal/... green on the default arch.

This unblocks main's CI and is a prerequisite for any new release (the same
drift would block the release build).

🤖 Generated with Claude Code

…ild)

rookery split the eBPF code into its own Go submodule at
plugins/attestors/commandrun/ebpf. cilock-action's go.mod had no require/
replace for it, so any Linux build (tracing_ebpf_linux.go is build-tagged
linux) failed with "missing go.sum entry for .../commandrun/ebpf" — this is
why main's Build (linux/amd64, linux/arm64) checks are currently red.

Add the require + local replace (matching every other rookery sibling) and
run go mod tidy so go.sum gains the submodule's transitive deps
(github.com/cilium/ebpf and friends). Linux build now resolves.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
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