From 2d3398c3d3920b2d8bead9d8f3b6a3a1089a90f4 Mon Sep 17 00:00:00 2001 From: Brian McGee Date: Fri, 4 Oct 2024 14:32:16 +0100 Subject: [PATCH] fix: git module domain It was still pointing to git.numtide.com Signed-off-by: Brian McGee --- .goreleaser.yaml | 2 +- cache/cache.go | 6 +++--- cli/cli.go | 4 ++-- cli/format.go | 10 +++++----- cli/format_test.go | 6 +++--- cli/helpers_test.go | 4 ++-- format/formatter.go | 4 ++-- format/glob_test.go | 2 +- format/task.go | 2 +- go.mod | 2 +- init.toml | 2 +- main.go | 4 ++-- nix/packages/treefmt/default.nix | 6 +++--- test/temp.go | 2 +- walk/filesystem_test.go | 2 +- 15 files changed, 29 insertions(+), 29 deletions(-) diff --git a/.goreleaser.yaml b/.goreleaser.yaml index 15817401..30dbf335 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -18,7 +18,7 @@ builds: - env: - CGO_ENABLED=0 ldflags: - - -s -w -X git.numtide.com/numtide/treefmt/build.Version=v{{.Version}} + - -s -w -X github.com/numtide/treefmt/build.Version=v{{.Version}} goos: - linux - darwin diff --git a/cache/cache.go b/cache/cache.go index 46496007..7effc933 100644 --- a/cache/cache.go +++ b/cache/cache.go @@ -9,10 +9,10 @@ import ( "runtime" "time" - "git.numtide.com/numtide/treefmt/stats" + "github.com/numtide/treefmt/stats" - "git.numtide.com/numtide/treefmt/format" - "git.numtide.com/numtide/treefmt/walk" + "github.com/numtide/treefmt/format" + "github.com/numtide/treefmt/walk" "github.com/charmbracelet/log" diff --git a/cli/cli.go b/cli/cli.go index 8210ac47..be69c65a 100644 --- a/cli/cli.go +++ b/cli/cli.go @@ -5,10 +5,10 @@ import ( "github.com/gobwas/glob" - "git.numtide.com/numtide/treefmt/format" - "git.numtide.com/numtide/treefmt/walk" "github.com/alecthomas/kong" "github.com/charmbracelet/log" + "github.com/numtide/treefmt/format" + "github.com/numtide/treefmt/walk" ) func New() *Format { diff --git a/cli/format.go b/cli/format.go index d1f5e8d3..5cb473d8 100644 --- a/cli/format.go +++ b/cli/format.go @@ -14,13 +14,13 @@ import ( "syscall" "time" - "git.numtide.com/numtide/treefmt/format" - "git.numtide.com/numtide/treefmt/stats" + "github.com/numtide/treefmt/format" + "github.com/numtide/treefmt/stats" "mvdan.cc/sh/v3/expand" - "git.numtide.com/numtide/treefmt/cache" - "git.numtide.com/numtide/treefmt/config" - "git.numtide.com/numtide/treefmt/walk" + "github.com/numtide/treefmt/cache" + "github.com/numtide/treefmt/config" + "github.com/numtide/treefmt/walk" "github.com/charmbracelet/log" "golang.org/x/sync/errgroup" diff --git a/cli/format_test.go b/cli/format_test.go index 53ac9e42..6ce199b6 100644 --- a/cli/format_test.go +++ b/cli/format_test.go @@ -11,9 +11,9 @@ import ( "testing" "time" - "git.numtide.com/numtide/treefmt/config" - "git.numtide.com/numtide/treefmt/format" - "git.numtide.com/numtide/treefmt/test" + "github.com/numtide/treefmt/config" + "github.com/numtide/treefmt/format" + "github.com/numtide/treefmt/test" "github.com/go-git/go-billy/v5/osfs" "github.com/go-git/go-git/v5" diff --git a/cli/helpers_test.go b/cli/helpers_test.go index 7c4fe02d..64666cbb 100644 --- a/cli/helpers_test.go +++ b/cli/helpers_test.go @@ -8,9 +8,9 @@ import ( "github.com/charmbracelet/log" - "git.numtide.com/numtide/treefmt/stats" + "github.com/numtide/treefmt/stats" - "git.numtide.com/numtide/treefmt/test" + "github.com/numtide/treefmt/test" "github.com/alecthomas/kong" "github.com/stretchr/testify/require" diff --git a/format/formatter.go b/format/formatter.go index 4bf2effb..a77d00d7 100644 --- a/format/formatter.go +++ b/format/formatter.go @@ -8,8 +8,8 @@ import ( "os/exec" "time" - "git.numtide.com/numtide/treefmt/config" - "git.numtide.com/numtide/treefmt/walk" + "github.com/numtide/treefmt/config" + "github.com/numtide/treefmt/walk" "github.com/charmbracelet/log" "github.com/gobwas/glob" diff --git a/format/glob_test.go b/format/glob_test.go index fad77c8b..137cdb25 100644 --- a/format/glob_test.go +++ b/format/glob_test.go @@ -3,7 +3,7 @@ package format_test import ( "testing" - "git.numtide.com/numtide/treefmt/format" + "github.com/numtide/treefmt/format" "github.com/gobwas/glob" "github.com/stretchr/testify/require" diff --git a/format/task.go b/format/task.go index c7f7c0c6..9da38111 100644 --- a/format/task.go +++ b/format/task.go @@ -4,7 +4,7 @@ import ( "cmp" "slices" - "git.numtide.com/numtide/treefmt/walk" + "github.com/numtide/treefmt/walk" ) type Task struct { diff --git a/go.mod b/go.mod index 67393eae..2d0740bd 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module git.numtide.com/numtide/treefmt +module github.com/numtide/treefmt go 1.22 diff --git a/init.toml b/init.toml index d332172f..f4458fe8 100644 --- a/init.toml +++ b/init.toml @@ -1,4 +1,4 @@ -# One CLI to format the code tree - https://git.numtide.com/numtide/treefmt +# One CLI to format the code tree - https://github.com/numtide/treefmt [formatter.mylanguage] # Formatter to run diff --git a/main.go b/main.go index 23539024..c3f8ed33 100644 --- a/main.go +++ b/main.go @@ -5,9 +5,9 @@ import ( "fmt" "os" - "git.numtide.com/numtide/treefmt/build" - "git.numtide.com/numtide/treefmt/cli" "github.com/alecthomas/kong" + "github.com/numtide/treefmt/build" + "github.com/numtide/treefmt/cli" ) // We embed the sample toml file for use with the init flag. diff --git a/nix/packages/treefmt/default.nix b/nix/packages/treefmt/default.nix index 4092e680..943ba82b 100644 --- a/nix/packages/treefmt/default.nix +++ b/nix/packages/treefmt/default.nix @@ -42,8 +42,8 @@ in ldflags = [ "-s" "-w" - "-X git.numtide.com/numtide/treefmt/build.Name=${pname}" - "-X git.numtide.com/numtide/treefmt/build.Version=v${version}" + "-X github.com/numtide/treefmt/build.Name=${pname}" + "-X github.com/numtide/treefmt/build.Version=v${version}" ]; nativeBuildInputs = @@ -57,7 +57,7 @@ in meta = with lib; { description = "treefmt: one CLI to format your repo"; - homepage = "https://git.numtide.com/numtide/treefmt"; + homepage = "https://github.com/numtide/treefmt"; license = licenses.mit; mainProgram = "treefmt"; }; diff --git a/test/temp.go b/test/temp.go index 2194df2a..59a2bfaf 100644 --- a/test/temp.go +++ b/test/temp.go @@ -6,7 +6,7 @@ import ( "testing" "time" - "git.numtide.com/numtide/treefmt/config" + "github.com/numtide/treefmt/config" "github.com/BurntSushi/toml" cp "github.com/otiai10/copy" diff --git a/walk/filesystem_test.go b/walk/filesystem_test.go index 503ec0d3..b33404b8 100644 --- a/walk/filesystem_test.go +++ b/walk/filesystem_test.go @@ -5,7 +5,7 @@ import ( "os" "testing" - "git.numtide.com/numtide/treefmt/test" + "github.com/numtide/treefmt/test" "github.com/stretchr/testify/require" )