Skip to content

module: rename to github.com/mandiant/gopacket#11

Merged
psycep merged 1 commit intomainfrom
module-rename
Apr 22, 2026
Merged

module: rename to github.com/mandiant/gopacket#11
psycep merged 1 commit intomainfrom
module-rename

Conversation

@psycep
Copy link
Copy Markdown
Collaborator

@psycep psycep commented Apr 22, 2026

Summary

Fixes #6 (thanks @5amu for flagging).

The module was declared as module gopacket in go.mod, which is not a canonical import path. External projects could not go get github.com/mandiant/gopacket to use any of the 24 protocol packages as a library; the only workaround was to clone the repo and add a replace directive to their own go.mod. This change makes the README's library story actually usable from external code.

Changes

  • go.mod: module gopacketmodule github.com/mandiant/gopacket
  • 434 import statements across 157 files: "gopacket/...""github.com/mandiant/gopacket/..."

Pure mechanical change, no runtime or behavior difference. pkg/third_party/smb2 imports are covered by the same sweep since the vendored code uses the host module path internally.

Test plan

  • go mod tidy clean
  • go build ./... clean
  • go vet ./... clean
  • go test ./pkg/transport/ passes (test output shows the new github.com/mandiant/gopacket/pkg/transport path, confirming the rename took)

Fixes #6. The module was declared as `module gopacket` in go.mod,
which is not a canonical import path. External projects could not
`go get github.com/mandiant/gopacket` to use any of the 24
protocol packages as a library; the only workaround was to clone
the repo and add a `replace` directive to their own go.mod.

This commit:
- Sets `module github.com/mandiant/gopacket` in go.mod.
- Rewrites 434 import statements across 157 files from the bare
  `gopacket/...` prefix to `github.com/mandiant/gopacket/...`.

Pure mechanical change, no behavior difference. Makes the README's
library story (pkg/ directory, 24 reusable packages) actually
usable from external code.
@psycep psycep merged commit 4890b97 into main Apr 22, 2026
2 checks passed
@psycep psycep deleted the module-rename branch April 22, 2026 15:30
@psycep psycep mentioned this pull request Apr 22, 2026
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.

Consider Renaming Module

1 participant