From 9b230270a60fdfe5088964749b908ee5156bb8d2 Mon Sep 17 00:00:00 2001 From: Michael Johnson Date: Tue, 29 Sep 2026 13:52:09 +0200 Subject: [PATCH] Migrate module path to go.michaelspost.com --- README.md | 16 ++++++++++++++-- controlplane/controlplane.go | 4 ++-- controlplane/controlplane_test.go | 2 +- controlplane/scoped_test.go | 2 +- controlplane/security_test.go | 2 +- go.mod | 2 +- proxy/proxy.go | 2 +- store/decisions.go | 2 +- store/decisions_test.go | 2 +- store/store.go | 2 +- 10 files changed, 24 insertions(+), 12 deletions(-) diff --git a/README.md b/README.md index 52883cc..3f33b67 100644 --- a/README.md +++ b/README.md @@ -21,13 +21,13 @@ gatekit is what runs on the node and talks to it. Gatekit v0.5.0 requires Go 1.26.5 or newer: ```sh -go get github.com/kilo666mj/gatekit@v0.5.0 +go get go.michaelspost.com/gatekit@v0.7.0 go test ./... ``` Import only the packages the application needs; the module deliberately has no top-level runtime or command. Browse the -[package reference](https://pkg.go.dev/github.com/kilo666mj/gatekit) for the +[package reference](https://pkg.go.dev/go.michaelspost.com/gatekit) for the current exported API. ## Security boundary @@ -190,3 +190,15 @@ are never evicted. Periodic `PruneToLimit` remains useful for policy-created row MIT [gate-stack-guide]: https://github.com/kilo666mj/michaelspost-docs/blob/main/docs/guides/gate-stack.md + +## Module path migration + +Starting with `v0.7.0`, the canonical module path is +`go.michaelspost.com/gatekit`. Update imports (including package subpaths) +and the requirement in `go.mod` together, then run `go mod tidy` and your tests. +Do not mix the old and new package paths in one build: Go treats them as +different package identities. No `replace` directive is needed. + +Earlier tags retain `github.com/kilo666mj/gatekit` and remain available for +existing consumers pinned to those releases. GitHub remains the source repository; +the vanity path allows future hosting changes without changing imports again. diff --git a/controlplane/controlplane.go b/controlplane/controlplane.go index b42747b..95d2612 100644 --- a/controlplane/controlplane.go +++ b/controlplane/controlplane.go @@ -18,8 +18,8 @@ import ( "strings" "time" - "github.com/kilo666mj/gatekit/approval" - "github.com/kilo666mj/gatekit/store" + "go.michaelspost.com/gatekit/approval" + "go.michaelspost.com/gatekit/store" ) const ( diff --git a/controlplane/controlplane_test.go b/controlplane/controlplane_test.go index 541d320..f38110d 100644 --- a/controlplane/controlplane_test.go +++ b/controlplane/controlplane_test.go @@ -11,7 +11,7 @@ import ( "testing" "time" - "github.com/kilo666mj/gatekit/store" + "go.michaelspost.com/gatekit/store" ) func openStore(t *testing.T) *store.Store { diff --git a/controlplane/scoped_test.go b/controlplane/scoped_test.go index 4729179..fd5db6b 100644 --- a/controlplane/scoped_test.go +++ b/controlplane/scoped_test.go @@ -1,7 +1,7 @@ package controlplane import ( - "github.com/kilo666mj/gatekit/store" + "go.michaelspost.com/gatekit/store" "io" "net/http" "net/http/httptest" diff --git a/controlplane/security_test.go b/controlplane/security_test.go index c72c7a6..670831c 100644 --- a/controlplane/security_test.go +++ b/controlplane/security_test.go @@ -10,7 +10,7 @@ import ( "sync/atomic" "testing" - "github.com/kilo666mj/gatekit/store" + "go.michaelspost.com/gatekit/store" ) func TestRejectInsecureURLs(t *testing.T) { diff --git a/go.mod b/go.mod index 919d840..0ab31c4 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/kilo666mj/gatekit +module go.michaelspost.com/gatekit go 1.26.5 diff --git a/proxy/proxy.go b/proxy/proxy.go index 1b64c2f..dd9cb86 100644 --- a/proxy/proxy.go +++ b/proxy/proxy.go @@ -18,7 +18,7 @@ import ( "sync" "time" - "github.com/kilo666mj/gatekit/semaphore" + "go.michaelspost.com/gatekit/semaphore" ) // Route maps one listening address to one backend address. Port is derived diff --git a/store/decisions.go b/store/decisions.go index 0e168bf..d6f768c 100644 --- a/store/decisions.go +++ b/store/decisions.go @@ -4,7 +4,7 @@ import ( "context" "encoding/json" "fmt" - "github.com/kilo666mj/gatekit/approval" + "go.michaelspost.com/gatekit/approval" "time" ) diff --git a/store/decisions_test.go b/store/decisions_test.go index 0e57490..bc3e2ff 100644 --- a/store/decisions_test.go +++ b/store/decisions_test.go @@ -2,7 +2,7 @@ package store import ( "database/sql" - "github.com/kilo666mj/gatekit/approval" + "go.michaelspost.com/gatekit/approval" "net/netip" "path/filepath" "testing" diff --git a/store/store.go b/store/store.go index 428845d..6864e81 100644 --- a/store/store.go +++ b/store/store.go @@ -21,7 +21,7 @@ import ( "strings" "time" - "github.com/kilo666mj/gatekit/approval" + "go.michaelspost.com/gatekit/approval" _ "modernc.org/sqlite" )