Rename module to entire.io/git-sync · Entire
Rename module to entire.io/git-sync
023b848→main·
nodo·2mo ago·36 files·+77 added/-77 removed
Mechanical rename of the Go module path from github.com/entirehq/git-sync to entire.io/git-sync. The git remote stays at github.com/entirehq/git-sync; this is a vanity import path change only.
Do not merge until entirehq/entire.io#1730 ships to production — that PR adds the go-import meta tag at https://entire.io/git-sync, without which 'go get entire.io/git-sync' fails for downstream consumers.
Changes
36
cmd
git-sync-bench
Mmain.go+3/-3
Mmain_test.go+1/-1
git-sync
- Mmain.go+3/-3 - Mmain\_test.go+1/-1docs
- Membedding.md+1/-1
Mgo.mod+1/-1
internal
convert
Mconvert.go+2/-2
Mconvert_test.go+2/-2
planner
Mplanner.go+1/-1
Mplanner_test.go+1/-1
Mtypes.go+1/-1
strategy
bootstrap
Mbootstrap.go+3/-3
Mbootstrap_test.go+2/-2
incremental
Mincremental.go+3/-3
Mincremental_test.go+3/-3
materialized
Mmaterialized.go+3/-3
Mmaterialized_test.go+4/-4
replicate
Mreplicate.go+3/-3
Mreplicate_test.go+2/-2
syncer
Mauth_test.go+1/-1
Mbenchmark_test.go+1/-1
Mgit_http_backend_test.go+3/-3
Mintegration_test.go+4/-4
Mstats.go+1/-1
Msyncer.go+9/-9
Msyncer_test.go+1/-1
mise-tasks/lint
- Mlicenses+1/-1
pkg/gitsync
Mclient.go+2/-2
Mclient_test.go+1/-1
Mexample_test.go+1/-1
internalbridge
Mconfig.go+2/-2
Mmodel.go+2/-2
Mmodel_test.go+2/-2
Mtypes.go+1/-1
unstable
Mclient.go+4/-4
Mclient_test.go+1/-1
`` 14 unmodified lines
15 16 17 18 19 20 18 19 20 21 22 23
14 unmodified lines
git "github.com/go-git/go-git/v6"
"github.com/entirehq/git-sync/internal/validation" "github.com/entirehq/git-sync/pkg/gitsync" "github.com/entirehq/git-sync/pkg/gitsync/unstable" "entire.io/git-sync/internal/validation" "entire.io/git-sync/pkg/gitsync" "entire.io/git-sync/pkg/gitsync/unstable" )
type scenario string ``
Mcmd/git-sync-bench/main.go+3/-3 `` 2 unmodified lines
3 4 5 6 6 7 8 9
2 unmodified lines
import ( "testing"
"github.com/entirehq/git-sync/pkg/gitsync/unstable" "entire.io/git-sync/pkg/gitsync/unstable" )
func TestSummarizeRuns(t *testing.T) { ``
Mcmd/git-sync-bench/main_test.go+1/-1 `` 8 unmodified lines
9 10 11 12 13 14 12 13 14 15 16 17
8 unmodified lines
"os" "strings"
"github.com/entirehq/git-sync/internal/validation" "github.com/entirehq/git-sync/pkg/gitsync" "github.com/entirehq/git-sync/pkg/gitsync/unstable" "entire.io/git-sync/internal/validation" "entire.io/git-sync/pkg/gitsync" "entire.io/git-sync/pkg/gitsync/unstable" "github.com/go-git/go-git/v6/plumbing" ) ``
Mcmd/git-sync/main.go+3/-3 `` 13 unmodified lines
14 15 16 17 17 18 19 20
13 unmodified lines
"testing" "time"
"github.com/entirehq/git-sync/pkg/gitsync/unstable" "entire.io/git-sync/pkg/gitsync/unstable" billy "github.com/go-git/go-billy/v6" "github.com/go-git/go-billy/v6/memfs" git "github.com/go-git/go-git/v6" ``
Mcmd/git-sync/main_test.go+1/-1 `` 48 unmodified lines
49 50 51 52 52 53 54 55
48 unmodified lines
"context" "net/http"
"github.com/entirehq/git-sync/pkg/gitsync" "entire.io/git-sync/pkg/gitsync" )
func runSync(ctx context.Context) error { ``
Mdocs/embedding.md+1/-1 `` 1 1 2 3 4
module github.com/entirehq/git-sync module entire.io/git-sync
go 1.25.2 ``
Mgo.mod+1/-1 `` 5 unmodified lines
6 7 8 9 10 9 10 11 12 13
5 unmodified lines
import ( "github.com/go-git/go-git/v6/plumbing"
"github.com/entirehq/git-sync/internal/gitproto" "github.com/entirehq/git-sync/internal/planner" "entire.io/git-sync/internal/gitproto" "entire.io/git-sync/internal/planner" )
// DesiredRefs converts planner desired refs to gitproto desired refs. ``
Minternal/convert/convert.go+2/-2 `` 4 unmodified lines
5 6 7 8 9 8 9 10 11 12
4 unmodified lines
"github.com/go-git/go-git/v6/plumbing"
func TestDesiredRefsForPlans(t *testing.T) { ``
Minternal/convert/convert_test.go+2/-2 `` 4 unmodified lines
5 6 7 8 8 9 10 11
4 unmodified lines
"fmt" "sort"
"github.com/entirehq/git-sync/internal/validation" "entire.io/git-sync/internal/validation" "github.com/go-git/go-git/v6/plumbing" "github.com/go-git/go-git/v6/plumbing/object" "github.com/go-git/go-git/v6/plumbing/storer" ``
Minternal/planner/planner.go+1/-1 `` 5 unmodified lines
6 7 8 9 9 10 11 12
5 unmodified lines
"testing" "time"
"github.com/entirehq/git-sync/internal/validation" "entire.io/git-sync/internal/validation" git "github.com/go-git/go-git/v6" "github.com/go-git/go-git/v6/plumbing" "github.com/go-git/go-git/v6/plumbing/object" ``
Minternal/planner/planner_test.go+1/-1 `` 5 unmodified lines
6 7 8 9 9 10 11 12
5 unmodified lines
"sort" "strings"
"github.com/entirehq/git-sync/internal/validation" "entire.io/git-sync/internal/validation" "github.com/go-git/go-git/v6/plumbing" ) ``
Minternal/planner/types.go+1/-1 `` 22 unmodified lines
23 24 25 26 27 28 26 27 28 29 30 31
22 unmodified lines
"github.com/go-git/go-git/v6/plumbing/storer" "github.com/go-git/go-git/v6/storage/memory"
"github.com/entirehq/git-sync/internal/convert" "github.com/entirehq/git-sync/internal/gitproto" "github.com/entirehq/git-sync/internal/planner" "entire.io/git-sync/internal/convert" "entire.io/git-sync/internal/gitproto" "entire.io/git-sync/internal/planner" )
const ( ``
Minternal/strategy/bootstrap/bootstrap.go+3/-3 `` 17 unmodified lines
18 19 20 21 22 21 22 23 24 25
17 unmodified lines
"github.com/go-git/go-git/v6/plumbing/transport" "github.com/go-git/go-git/v6/storage/memory"
func TestIsTargetBodyLimitError(t *testing.T) { ``
Minternal/strategy/bootstrap/bootstrap_test.go+2/-2 `` 11 unmodified lines
12 13 14 15 16 17 15 16 17 18 19 20
11 unmodified lines
"github.com/go-git/go-git/v6/plumbing"
"github.com/entirehq/git-sync/internal/convert" "github.com/entirehq/git-sync/internal/gitproto" "github.com/entirehq/git-sync/internal/planner" "entire.io/git-sync/internal/convert" "entire.io/git-sync/internal/gitproto" "entire.io/git-sync/internal/planner" // Params holds the inputs for an incremental relay execution. ``
Minternal/strategy/incremental/incremental.go+3/-3 `` 8 unmodified lines
9 10 11 12 13 14 12 13 14 15 16 17
8 unmodified lines
"github.com/go-git/go-git/v6/plumbing"
func TestPlansToPushPlans(t *testing.T) { ``
Minternal/strategy/incremental/incremental_test.go+3/-3 `` 11 unmodified lines
12 13 14 15 16 17 15 16 17 18 19 20
11 unmodified lines
"github.com/go-git/go-git/v6/plumbing" "github.com/go-git/go-git/v6/plumbing/storer"
"github.com/entirehq/git-sync/internal/convert" "github.com/entirehq/git-sync/internal/gitproto" "github.com/entirehq/git-sync/internal/planner" "entire.io/git-sync/internal/convert" "entire.io/git-sync/internal/gitproto" "entire.io/git-sync/internal/planner" // Params holds the inputs for a materialized push. ``
Minternal/strategy/materialized/materialized.go+3/-3 `` 7 unmodified lines
8 9 10 11 12 13 14 11 12 13 14 15 16 17
7 unmodified lines
"github.com/go-git/go-git/v6/plumbing/object" "github.com/go-git/go-git/v6/plumbing/storer"
"github.com/entirehq/git-sync/internal/convert" "github.com/entirehq/git-sync/internal/gitproto" "github.com/entirehq/git-sync/internal/planner" "github.com/entirehq/git-sync/internal/syncertest" "entire.io/git-sync/internal/convert" "entire.io/git-sync/internal/gitproto" "entire.io/git-sync/internal/planner" "entire.io/git-sync/internal/syncertest" )
func TestPlansToPushPlans(t *testing.T) { ``
Minternal/strategy/materialized/materialized_test.go+4/-4 `` 9 unmodified lines
10 11 12 13 14 15 13 14 15 16 17 18
9 unmodified lines
"github.com/go-git/go-git/v6/plumbing"
"github.com/entirehq/git-sync/internal/convert" "github.com/entirehq/git-sync/internal/gitproto" "github.com/entirehq/git-sync/internal/planner" "entire.io/git-sync/internal/convert" "entire.io/git-sync/internal/gitproto" "entire.io/git-sync/internal/planner" // Params holds the inputs for a replication relay execution. ``
Minternal/strategy/replicate/replicate.go+3/-3 `` 7 unmodified lines
8 9 10 11 12 11 12 13 14 15
7 unmodified lines
"github.com/go-git/go-git/v6/plumbing"
"github.com/entirehq/git-sync/internal/gitproto" "github.com/entirehq/git-sync/internal/planner" "entire.io/git-sync/internal/gitproto" "entire.io/git-sync/internal/planner" } ``
Minternal/strategy/replicate/replicate_test.go+2/-2 `` 13 unmodified lines
14 15 16 17 17 18 19 20
13 unmodified lines
"github.com/go-git/go-git/v6/plumbing/transport" transporthttp "github.com/go-git/go-git/v6/plumbing/transport/http"
"github.com/entirehq/git-sync/internal/auth" "entire.io/git-sync/internal/auth" }
func TestResolveAuthMethodPrefersExplicitToken(t *testing.T) { ``
Minternal/syncer/auth_test.go+1/-1 `` 1 unmodified line
2 3 4 5 5 6 7 8
1 unmodified line
import ( "context" "github.com/entirehq/git-sync/internal/syncertest" "entire.io/git-sync/internal/syncertest" git "github.com/go-git/go-git/v6" "github.com/go-git/go-git/v6/plumbing" "github.com/go-git/go-git/v6/plumbing/storer" ) ``
Minternal/syncer/benchmark_test.go+1/-1 `` 14 unmodified lines
15 16 17 18 19 20 18 19 20 21 22 23
14 unmodified lines
"sync" "testing"
"github.com/entirehq/git-sync/internal/gitproto" "github.com/entirehq/git-sync/internal/planner" bstrap "github.com/entirehq/git-sync/internal/strategy/bootstrap" "entire.io/git-sync/internal/gitproto" "entire.io/git-sync/internal/planner" bstrap "entire.io/git-sync/internal/strategy/bootstrap" "github.com/go-git/go-git/v6/plumbing" ) ``
Minternal/syncer/git_http_backend_test.go+3/-3 `` 14 unmodified lines
15 16 17 18 19 20 21 18 19 20 21 22 23 24
14 unmodified lines
"testing" "time"
"github.com/entirehq/git-sync/internal/auth" "github.com/entirehq/git-sync/internal/gitproto" "github.com/entirehq/git-sync/internal/planner" "github.com/entirehq/git-sync/internal/syncertest" "entire.io/git-sync/internal/auth" "entire.io/git-sync/internal/gitproto" "entire.io/git-sync/internal/planner" "entire.io/git-sync/internal/syncertest" billy "github.com/go-git/go-billy/v6" git "github.com/go-git/go-git/v6" "github.com/go-git/go-git/v6/plumbing" ``
Minternal/syncer/integration_test.go+4/-4 `` 6 unmodified lines
7 8 9 10 10 11 12 13
6 unmodified lines
"strings" "sync"
"github.com/entirehq/git-sync/internal/gitproto" "entire.io/git-sync/internal/gitproto"
// ServiceStats tracks transfer statistics for a single service. ``
Minternal/syncer/stats.go+1/-1 `` 20 unmodified lines
21 22 23 24 25 26 27 28 29 30 31 32 24 25 26 27 28 29 30 31 32 33 34 35
20 unmodified lines
"github.com/go-git/go-git/v6/plumbing/transport" "github.com/go-git/go-git/v6/storage/memory"
"github.com/entirehq/git-sync/internal/auth" "github.com/entirehq/git-sync/internal/convert" "github.com/entirehq/git-sync/internal/gitproto" "github.com/entirehq/git-sync/internal/planner" bstrap "github.com/entirehq/git-sync/internal/strategy/bootstrap" "github.com/entirehq/git-sync/internal/strategy/incremental" "github.com/entirehq/git-sync/internal/strategy/materialized" repstrat "github.com/entirehq/git-sync/internal/strategy/replicate" "github.com/entirehq/git-sync/internal/validation" "entire.io/git-sync/internal/auth" "entire.io/git-sync/internal/convert" "entire.io/git-sync/internal/gitproto" "entire.io/git-sync/internal/planner" bstrap "entire.io/git-sync/internal/strategy/bootstrap" "entire.io/git-sync/internal/strategy/incremental" "entire.io/git-sync/internal/strategy/materialized" repstrat "entire.io/git-sync/internal/strategy/replicate" "entire.io/git-sync/internal/validation" )
const ( ``
Minternal/syncer/syncer.go+9/-9 `` 2 unmodified lines
3 4 5 6 6 7 8 9
2 unmodified lines
import ( "testing"
bstrap "github.com/entirehq/git-sync/internal/strategy/bootstrap" bstrap "entire.io/git-sync/internal/strategy/bootstrap" )
func TestGitHubOwnerRepo(t *testing.T) { ``
Minternal/syncer/syncer_test.go+1/-1\n\n45 unmodified lines\n\n46\n47\n48\n49\n49\n50\n51\n52\n\n45 unmodified lines\n\nVIOLATIONS=()\nwhile IFS=',' read -r package _url license; do\n # Skip internal packages\n if [[ "$package" == github.com/entirehq/git-sync/* ]]; then\n if [[ "$package" == entire.io/git-sync/* ]]; then\n continue;\n fi\n\n