Skip to content

docs: add Install section (fixes "go install ... does not contain package")#44

Merged
ErenAri merged 1 commit into
mainfrom
docs/install-instructions
Jun 24, 2026
Merged

docs: add Install section (fixes "go install ... does not contain package")#44
ErenAri merged 1 commit into
mainfrom
docs/install-instructions

Conversation

@ErenAri

@ErenAri ErenAri commented Jun 24, 2026

Copy link
Copy Markdown
Contributor

Problem

A user hit:

go: github.com/Kernel-Guard/bpfcompat@v0.1.6: module ... found, but does not contain package github.com/Kernel-Guard/bpfcompat

Root causes (both reproduced):

  1. The main package is in cmd/bpfcompat, not the module root — go install <module>@latest finds no package.
  2. The module path is lowercase github.com/kernel-guard/bpfcompat, while the GitHub org is Kernel-Guard; the capital form fails with a module-path-mismatch error.

There was no documented install command anywhere, so users guessed the failing form.

Fix

Add an Install section to the README with three verified paths, and point the quickstart's local-CLI section at it:

  1. Prebuilt release binary (recommended) — CLI + static validator, checksum-verified.
  2. From sourcemake build && make validator-static.
  3. go installgo install github.com/kernel-guard/bpfcompat/cmd/bpfcompat@latest (lowercase module + cmd subpath; CLI only, reports 0.1.0-dev since ldflags aren't injected).

Verification

All three commands run clean against v0.1.6:

  • release download + sha256sum -c --ignore-missing → OK, bpfcompat versionv0.1.6
  • go install .../cmd/bpfcompat@v0.1.6 → builds a runnable binary
  • source build already covered by CI

🤖 Generated with Claude Code

…age" error

Users had no documented install command and guessed
`go install github.com/Kernel-Guard/bpfcompat@latest`, which fails with
"module ... found, but does not contain package ..." for two reasons:
the main package lives in cmd/bpfcompat (not the module root), and the
module path is lowercase (github.com/kernel-guard/bpfcompat) while the
GitHub org is Kernel-Guard.

Add an Install section to the README documenting three verified paths:
  1. prebuilt release binary + static validator (checksum-verified)
  2. from source (make build && make validator-static)
  3. go install github.com/kernel-guard/bpfcompat/cmd/bpfcompat@latest
     (CLI only; note lowercase module + cmd subpath)

Point quickstart's local-CLI section at it. All three commands tested.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@ErenAri ErenAri merged commit 9dbd5ff into main Jun 24, 2026
6 checks passed
@ErenAri ErenAri deleted the docs/install-instructions branch June 24, 2026 13:14
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.

1 participant