Rename Go module path to the Forgejo URL #45

Closed
opened 2026-06-02 07:20:18 +00:00 by coilysiren · 0 comments
Owner

Rename Go module path to the Forgejo URL

coily resolves cli-guard as github.com/coilysiren/cli-guard, which Go fetches via proxy.golang.org -> GitHub. The Forgejo->GitHub push-mirror lags (see #36), so a freshly-landed Forgejo commit is not fetchable by consumers until the mirror catches up. Sourcing the module from Forgejo directly removes that dependency entirely: Forgejo serves the go-import meta for forgejo.coilysiren.me/coilyco-flight-deck/cli-guard, so Go's direct mode clones straight from canonical.

Scope

  • module github.com/coilysiren/cli-guard -> module forgejo.coilysiren.me/coilyco-flight-deck/cli-guard in go.mod.
  • Rewrite the self-import path in all in-tree .go files.
  • Regenerate godoc-current.txt; update any docs that cite the import path.

Consumers set GOPRIVATE=forgejo.coilysiren.me (Forgejo is not in sum.golang.org) and require the Forgejo module path. Companion change in coily.

## Rename Go module path to the Forgejo URL coily resolves cli-guard as `github.com/coilysiren/cli-guard`, which Go fetches via proxy.golang.org -> GitHub. The Forgejo->GitHub push-mirror lags (see #36), so a freshly-landed Forgejo commit is not fetchable by consumers until the mirror catches up. Sourcing the module from Forgejo directly removes that dependency entirely: Forgejo serves the `go-import` meta for `forgejo.coilysiren.me/coilyco-flight-deck/cli-guard`, so Go's `direct` mode clones straight from canonical. ### Scope - `module github.com/coilysiren/cli-guard` -> `module forgejo.coilysiren.me/coilyco-flight-deck/cli-guard` in go.mod. - Rewrite the self-import path in all in-tree `.go` files. - Regenerate `godoc-current.txt`; update any docs that cite the import path. Consumers set `GOPRIVATE=forgejo.coilysiren.me` (Forgejo is not in sum.golang.org) and require the Forgejo module path. Companion change in coily.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
coilyco-flight-deck/cli-guard#45
No description provided.