chore: rename Go module path to github.com/certctl-io/certctl

Mechanical sed across the main go.mod's module declaration, the f5-mock-icontrol
sub-module's go.mod, every Go file's import path (361 files), and a rebuild of
the checked-in f5-mock-icontrol binary so its embedded build-info reflects the
new module path. No behavior change.

Choice B from cowork/transfer-certctl-to-org.md, executed 2026-05-04. Choice A
(keep module path declared as github.com/shankar0123/certctl regardless of
repo URL) shipped on the day of the org transfer (2026-05-03) since we had no
external Go consumers; this commit closes that deferral.

Backward-compat: GitHub HTTP redirects continue to forward
github.com/shankar0123/certctl → github.com/certctl-io/certctl at the URL
level, but Go's module proxy uses the path declared in go.mod as the
canonical name. Pre-fix, anyone trying `go get github.com/certctl-io/certctl/...`
hit a "module path mismatch" error because go.mod said
github.com/shankar0123/certctl and the URL they fetched it from said
certctl-io/certctl. Post-fix, the canonical name and the URL agree, so
go get / go install / external Go consumers / Go-tooling integrations
work cleanly via either the new path (preferred) or the old path (which
redirects and Go follows the redirect for source fetch).

Anyone still importing the old path inside their own code keeps working
provided they update their go.mod's `require` line to match — the module
path declared in their consumer's go.sum / go.mod is the authoritative
import name, so a mass sed across their import statements is the migration
on the consumer side. No external consumers exist today.

Diff shape:
  361 *.go files  — import path replacement only
    2 go.mod     — module declaration replacement only
    1 binary     — deploy/test/f5-mock-icontrol/f5-mock-icontrol rebuilt
                   so embedded build-info reflects the new path (8618965 vs
                   8618933 bytes; 32-byte diff is the build-info change)

  Total: 364 files, 730 insertions / 730 deletions, net-zero size, pure
  mechanical substitution.

Verification:
  gofmt: 17 files needed re-alignment after sed (the new path is one char
    shorter than the old, so column-aligned import groups drifted). Applied
    `gofmt -w` to fix.
  go mod tidy: clean exit on both modules.
  go vet ./...: clean exit.
  go build ./...: clean exit.
  go test -short -count=1 on representative packages: all green
    (internal/domain, internal/validation, internal/crypto, internal/crypto/signer,
    cmd/agent). Test output now reads `ok github.com/certctl-io/certctl/...`
    confirming the module path resolves correctly.
  binary: f5-mock-icontrol rebuilt; `strings | grep shankar0123` returns
    nothing; `strings | grep certctl-io/certctl` shows the new module path
    embedded in build-info.

Files intentionally NOT touched in this commit:
  README.md / CHANGELOG.md / docs/ / etc. — already swept to certctl-io
    URLs in commit 0729ee4 (the post-transfer URL refresh). This commit is
    purely the Go-tooling layer.
  Scarf pixels (`shankar0123.docker.scarf.sh/...`) — Scarf-account
    namespace, not a Go import or GitHub repo URL. Stays.

This is a non-blocking, non-customer-impacting change. Operators pulling
container images, running `make verify`, hitting the API, or installing the
agent see no functional difference. Only Go-tooling consumers (none today)
are affected, and they're enabled — not broken — by this commit.
This commit is contained in:
shankar0123
2026-05-04 00:30:29 +00:00
parent 2d22e08a1e
commit 8b75e0311b
364 changed files with 730 additions and 730 deletions
+1 -1
View File
@@ -5,7 +5,7 @@ import (
"errors"
"time"
"github.com/shankar0123/certctl/internal/domain"
"github.com/certctl-io/certctl/internal/domain"
)
// Repository-level sentinel errors. Repositories (primarily the postgres
+2 -2
View File
@@ -11,9 +11,9 @@ import (
"fmt"
"time"
"github.com/certctl-io/certctl/internal/domain"
"github.com/certctl-io/certctl/internal/repository"
"github.com/lib/pq"
"github.com/shankar0123/certctl/internal/domain"
"github.com/shankar0123/certctl/internal/repository"
)
// ACMERepository implements the ACME server's persistence layer
+2 -2
View File
@@ -4,11 +4,11 @@ import (
"context"
"database/sql"
"fmt"
"github.com/shankar0123/certctl/internal/repository"
"github.com/certctl-io/certctl/internal/repository"
"time"
"github.com/certctl-io/certctl/internal/domain"
"github.com/google/uuid"
"github.com/shankar0123/certctl/internal/domain"
)
// AgentRepository implements repository.AgentRepository
+2 -2
View File
@@ -4,10 +4,10 @@ import (
"context"
"database/sql"
"fmt"
"github.com/shankar0123/certctl/internal/repository"
"github.com/certctl-io/certctl/internal/repository"
"time"
"github.com/shankar0123/certctl/internal/domain"
"github.com/certctl-io/certctl/internal/domain"
)
// AgentGroupRepository implements agent group CRUD with PostgreSQL.
+2 -2
View File
@@ -6,9 +6,9 @@ import (
"fmt"
"strings"
"github.com/certctl-io/certctl/internal/domain"
"github.com/certctl-io/certctl/internal/repository"
"github.com/google/uuid"
"github.com/shankar0123/certctl/internal/domain"
"github.com/shankar0123/certctl/internal/repository"
)
// AuditRepository implements repository.AuditRepository
+2 -2
View File
@@ -10,10 +10,10 @@ import (
"strings"
"time"
"github.com/certctl-io/certctl/internal/domain"
"github.com/certctl-io/certctl/internal/repository"
"github.com/google/uuid"
"github.com/lib/pq"
"github.com/shankar0123/certctl/internal/domain"
"github.com/shankar0123/certctl/internal/repository"
)
// CertificateRepository implements repository.CertificateRepository
@@ -16,8 +16,8 @@ import (
"testing"
"time"
"github.com/shankar0123/certctl/internal/domain"
"github.com/shankar0123/certctl/internal/repository/postgres"
"github.com/certctl-io/certctl/internal/domain"
"github.com/certctl-io/certctl/internal/repository/postgres"
)
// insertAgentAndTargetsRaw creates one agent and N deployment_targets, returns
+2 -2
View File
@@ -7,8 +7,8 @@ import (
"fmt"
"time"
"github.com/shankar0123/certctl/internal/domain"
"github.com/shankar0123/certctl/internal/repository"
"github.com/certctl-io/certctl/internal/domain"
"github.com/certctl-io/certctl/internal/repository"
)
// CRLCacheRepository implements repository.CRLCacheRepository using PostgreSQL.
@@ -5,8 +5,8 @@ import (
"testing"
"time"
"github.com/shankar0123/certctl/internal/domain"
"github.com/shankar0123/certctl/internal/repository/postgres"
"github.com/certctl-io/certctl/internal/domain"
"github.com/certctl-io/certctl/internal/repository/postgres"
)
// CRL cache repository tests run against the shared testcontainers
+2 -2
View File
@@ -7,9 +7,9 @@ import (
"strings"
"time"
"github.com/certctl-io/certctl/internal/domain"
"github.com/certctl-io/certctl/internal/repository"
"github.com/lib/pq"
"github.com/shankar0123/certctl/internal/domain"
"github.com/shankar0123/certctl/internal/repository"
)
// DiscoveryRepository implements the repository.DiscoveryRepository interface.
+2 -2
View File
@@ -6,8 +6,8 @@ import (
"fmt"
"time"
"github.com/shankar0123/certctl/internal/domain"
"github.com/shankar0123/certctl/internal/repository"
"github.com/certctl-io/certctl/internal/domain"
"github.com/certctl-io/certctl/internal/repository"
)
// HealthCheckRepository implements repository.HealthCheckRepository using PostgreSQL.
@@ -13,9 +13,9 @@ import (
"testing"
"time"
"github.com/shankar0123/certctl/internal/domain"
"github.com/shankar0123/certctl/internal/repository"
"github.com/shankar0123/certctl/internal/repository/postgres"
"github.com/certctl-io/certctl/internal/domain"
"github.com/certctl-io/certctl/internal/repository"
"github.com/certctl-io/certctl/internal/repository/postgres"
)
// newHealthCheck builds a minimal EndpointHealthCheck the repository will
+2 -2
View File
@@ -4,10 +4,10 @@ import (
"context"
"database/sql"
"fmt"
"github.com/shankar0123/certctl/internal/repository"
"github.com/certctl-io/certctl/internal/repository"
"github.com/certctl-io/certctl/internal/domain"
"github.com/google/uuid"
"github.com/shankar0123/certctl/internal/domain"
)
// IssuerRepository implements repository.IssuerRepository
+2 -2
View File
@@ -4,11 +4,11 @@ import (
"context"
"database/sql"
"fmt"
"github.com/shankar0123/certctl/internal/repository"
"github.com/certctl-io/certctl/internal/repository"
"time"
"github.com/certctl-io/certctl/internal/domain"
"github.com/google/uuid"
"github.com/shankar0123/certctl/internal/domain"
)
// JobRepository implements repository.JobRepository
+2 -2
View File
@@ -4,11 +4,11 @@ import (
"context"
"database/sql"
"fmt"
"github.com/shankar0123/certctl/internal/repository"
"github.com/certctl-io/certctl/internal/repository"
"time"
"github.com/certctl-io/certctl/internal/domain"
"github.com/lib/pq"
"github.com/shankar0123/certctl/internal/domain"
)
// NetworkScanRepository implements repository.NetworkScanRepository using PostgreSQL.
+2 -2
View File
@@ -7,9 +7,9 @@ import (
"strings"
"time"
"github.com/certctl-io/certctl/internal/domain"
"github.com/certctl-io/certctl/internal/repository"
"github.com/google/uuid"
"github.com/shankar0123/certctl/internal/domain"
"github.com/shankar0123/certctl/internal/repository"
)
// NotificationRepository implements repository.NotificationRepository
@@ -6,8 +6,8 @@ import (
"testing"
"time"
"github.com/shankar0123/certctl/internal/domain"
"github.com/shankar0123/certctl/internal/repository/postgres"
"github.com/certctl-io/certctl/internal/domain"
"github.com/certctl-io/certctl/internal/repository/postgres"
)
// TestNotificationRepository_RetryMethods is the Phase 1 Red regression test
@@ -7,8 +7,8 @@ import (
"fmt"
"time"
"github.com/shankar0123/certctl/internal/domain"
"github.com/shankar0123/certctl/internal/repository"
"github.com/certctl-io/certctl/internal/domain"
"github.com/certctl-io/certctl/internal/repository"
)
// OCSPResponderRepository implements repository.OCSPResponderRepository.
@@ -6,8 +6,8 @@ import (
"errors"
"fmt"
"github.com/shankar0123/certctl/internal/domain"
"github.com/shankar0123/certctl/internal/repository"
"github.com/certctl-io/certctl/internal/domain"
"github.com/certctl-io/certctl/internal/repository"
)
// OCSPResponseCacheRepository implements repository.OCSPResponseCacheRepository
+2 -2
View File
@@ -4,10 +4,10 @@ import (
"context"
"database/sql"
"fmt"
"github.com/shankar0123/certctl/internal/repository"
"github.com/certctl-io/certctl/internal/repository"
"github.com/certctl-io/certctl/internal/domain"
"github.com/google/uuid"
"github.com/shankar0123/certctl/internal/domain"
)
// OwnerRepository implements repository.OwnerRepository
+2 -2
View File
@@ -6,9 +6,9 @@ import (
"fmt"
"strings"
"github.com/certctl-io/certctl/internal/domain"
"github.com/certctl-io/certctl/internal/repository"
"github.com/google/uuid"
"github.com/shankar0123/certctl/internal/domain"
"github.com/shankar0123/certctl/internal/repository"
)
// PolicyRepository implements repository.PolicyRepository
+2 -2
View File
@@ -5,11 +5,11 @@ import (
"database/sql"
"encoding/json"
"fmt"
"github.com/shankar0123/certctl/internal/repository"
"github.com/certctl-io/certctl/internal/repository"
"time"
"github.com/certctl-io/certctl/internal/domain"
"github.com/google/uuid"
"github.com/shankar0123/certctl/internal/domain"
)
// ProfileRepository implements repository.CertificateProfileRepository
@@ -11,8 +11,8 @@ import (
"github.com/lib/pq"
"github.com/shankar0123/certctl/internal/domain"
"github.com/shankar0123/certctl/internal/repository"
"github.com/certctl-io/certctl/internal/domain"
"github.com/certctl-io/certctl/internal/repository"
)
// RenewalPolicyRepository implements repository.RenewalPolicyRepository.
@@ -19,9 +19,9 @@ import (
"testing"
"time"
"github.com/shankar0123/certctl/internal/domain"
"github.com/shankar0123/certctl/internal/repository"
"github.com/shankar0123/certctl/internal/repository/postgres"
"github.com/certctl-io/certctl/internal/domain"
"github.com/certctl-io/certctl/internal/repository"
"github.com/certctl-io/certctl/internal/repository/postgres"
)
// TestRenewalPolicyRepository_CRUD exercises the happy path for all five
+3 -3
View File
@@ -15,9 +15,9 @@ import (
"testing"
"time"
"github.com/shankar0123/certctl/internal/domain"
"github.com/shankar0123/certctl/internal/repository"
"github.com/shankar0123/certctl/internal/repository/postgres"
"github.com/certctl-io/certctl/internal/domain"
"github.com/certctl-io/certctl/internal/repository"
"github.com/certctl-io/certctl/internal/repository/postgres"
)
// Shared test database — started once, reused across tests in this package.
+2 -2
View File
@@ -4,9 +4,9 @@ import (
"context"
"database/sql"
"fmt"
"github.com/shankar0123/certctl/internal/repository"
"github.com/certctl-io/certctl/internal/repository"
"github.com/shankar0123/certctl/internal/domain"
"github.com/certctl-io/certctl/internal/domain"
)
// RevocationRepository implements repository.RevocationRepository using PostgreSQL.
@@ -6,9 +6,9 @@ import (
"fmt"
"time"
"github.com/certctl-io/certctl/internal/domain"
"github.com/certctl-io/certctl/internal/repository"
"github.com/lib/pq"
"github.com/shankar0123/certctl/internal/domain"
"github.com/shankar0123/certctl/internal/repository"
)
// SCEPProbeResultRepository is the PostgreSQL-backed implementation of
+1 -1
View File
@@ -23,7 +23,7 @@ import (
"database/sql"
"testing"
"github.com/shankar0123/certctl/internal/repository/postgres"
"github.com/certctl-io/certctl/internal/repository/postgres"
)
// TestRunSeed_AppliesIdempotently verifies the U-3 contract that RunSeed
+2 -2
View File
@@ -4,10 +4,10 @@ import (
"context"
"database/sql"
"fmt"
"github.com/shankar0123/certctl/internal/repository"
"github.com/certctl-io/certctl/internal/repository"
"github.com/certctl-io/certctl/internal/domain"
"github.com/google/uuid"
"github.com/shankar0123/certctl/internal/domain"
)
// TargetRepository implements repository.TargetRepository
+2 -2
View File
@@ -4,10 +4,10 @@ import (
"context"
"database/sql"
"fmt"
"github.com/shankar0123/certctl/internal/repository"
"github.com/certctl-io/certctl/internal/repository"
"github.com/certctl-io/certctl/internal/domain"
"github.com/google/uuid"
"github.com/shankar0123/certctl/internal/domain"
)
// TeamRepository implements repository.TeamRepository
+1 -1
View File
@@ -17,7 +17,7 @@ import (
"database/sql"
"fmt"
"github.com/shankar0123/certctl/internal/repository"
"github.com/certctl-io/certctl/internal/repository"
)
// transactor is the production implementation of repository.Transactor.
+1 -1
View File
@@ -16,7 +16,7 @@ import (
"database/sql"
"testing"
"github.com/shankar0123/certctl/internal/repository"
"github.com/certctl-io/certctl/internal/repository"
)
// fakeBegin is a minimal *sql.DB substitute that lets tx_test exercise