Rename the Go module to sneak.berlin/go/secret (closes #43) #118

Merged
clawbot merged 1 commits from issue-43-module-path into next 2026-10-05 02:45:38 +02:00
Collaborator

Moves the Go module from git.eeqj.de/sneak/secret to sneak.berlin/go/secret, as REPO_POLICIES.md requires (#43).

  • go.mod is renamed with go mod edit -module. Every import in cmd/, internal/ and pkg/, the macOS-only files included, is rewritten with gofmt -r, which also re-sorts each import block, so some import lines change position.
  • script/build stamps Version and GitCommit under the new path. The Dockerfile builds through script/build, so it needs no change of its own.
  • The import examples in pkg/agehd/README.md and pkg/bip85/README.md use the new path.
  • go mod tidy, run in the repo's pinned Go image, marks github.com/dustin/go-humanize and github.com/fatih/color as direct requirements, since internal/cli imports them. go.sum is unchanged.

Not shown by the diff:

  • Anyone who fetched or imported the old path is broken by this and must switch. sneak.berlin/go/secret already resolves to this repository.
  • The git clone URL and the issue links in README.md, TODO.md and code comments still name git.eeqj.de: they are the repository's address, not the module path.
  • Unverified: script/lint-darwin cannot see the macOS files that need cgo (internal/macse, the keychain calls in keychainunlocker_cgo.go, and their tests). None of them imports a package of this module, so the rename leaves them unchanged.

Model: opus-5-5

Moves the Go module from `git.eeqj.de/sneak/secret` to `sneak.berlin/go/secret`, as `REPO_POLICIES.md` requires (https://git.eeqj.de/sneak/secret/issues/43). - `go.mod` is renamed with `go mod edit -module`. Every import in `cmd/`, `internal/` and `pkg/`, the macOS-only files included, is rewritten with `gofmt -r`, which also re-sorts each import block, so some import lines change position. - `script/build` stamps `Version` and `GitCommit` under the new path. The `Dockerfile` builds through `script/build`, so it needs no change of its own. - The import examples in `pkg/agehd/README.md` and `pkg/bip85/README.md` use the new path. - `go mod tidy`, run in the repo's pinned Go image, marks `github.com/dustin/go-humanize` and `github.com/fatih/color` as direct requirements, since `internal/cli` imports them. `go.sum` is unchanged. Not shown by the diff: - Anyone who fetched or imported the old path is broken by this and must switch. `sneak.berlin/go/secret` already resolves to this repository. - The `git clone` URL and the issue links in `README.md`, `TODO.md` and code comments still name git.eeqj.de: they are the repository's address, not the module path. - Unverified: `script/lint-darwin` cannot see the macOS files that need cgo (`internal/macse`, the keychain calls in `keychainunlocker_cgo.go`, and their tests). None of them imports a package of this module, so the rename leaves them unchanged. Model: opus-5-5
clawbot added the needs-review label 2026-10-05 02:15:26 +02:00
clawbot self-assigned this 2026-10-05 02:15:26 +02:00
clawbot added 1 commit 2026-10-05 02:15:26 +02:00
REPO_POLICIES.md requires the module root sneak.berlin/go/<name>.
go.mod, every import (rewritten with gofmt -r), the -X flags in
script/build and the examples in the pkg READMEs now use the new path.
go mod tidy lists go-humanize and fatih/color as direct requirements,
since internal/cli imports them.

This breaks anyone who fetched or imported git.eeqj.de/sneak/secret:
they must switch to sneak.berlin/go/secret, which resolves to this
repository.

Model: opus-5-5
Author
Collaborator

PASS: the module path is sneak.berlin/go/secret everywhere it is used, the macOS-only files included, and the built binary still shows its stamped version and commit.

Judgement call: the imports were rewritten with gofmt -r, the standard tooling #43 asks for, so I did not count it as a scripted edit. The two go.mod requirements that go mod tidy changed to direct count as part of the rename, since the issue requires the tidy.

Model: opus-5-5

PASS: the module path is `sneak.berlin/go/secret` everywhere it is used, the macOS-only files included, and the built binary still shows its stamped version and commit. Judgement call: the imports were rewritten with `gofmt -r`, the standard tooling https://git.eeqj.de/sneak/secret/issues/43 asks for, so I did not count it as a scripted edit. The two `go.mod` requirements that `go mod tidy` changed to direct count as part of the rename, since the issue requires the tidy. Model: opus-5-5
clawbot merged commit af9ac6d979 into next 2026-10-05 02:45:38 +02:00
clawbot deleted branch issue-43-module-path 2026-10-05 02:45:38 +02:00
Sign in to join this conversation.
No Reviewers
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: sneak/secret#118