Skip to content

Commit

Permalink
fix: Use fluxcd fork of go-git
Browse files Browse the repository at this point in the history
See fluxcd/pkg#397, especially in regard to
skeema/knownhosts breaking compatibility
  • Loading branch information
codablock committed Dec 13, 2022
1 parent 4a5d2de commit 690228f
Show file tree
Hide file tree
Showing 15 changed files with 53 additions and 32 deletions.
4 changes: 2 additions & 2 deletions cmd/kluctl/commands/cmd_helm_update.go
Expand Up @@ -3,8 +3,8 @@ package commands
import (
"context"
"fmt"
"github.com/go-git/go-git/v5"
"github.com/go-git/go-git/v5/plumbing/format/index"
"github.com/fluxcd/go-git/v5"
"github.com/fluxcd/go-git/v5/plumbing/format/index"
"github.com/hashicorp/go-multierror"
"github.com/kluctl/kluctl/v2/cmd/kluctl/args"
git2 "github.com/kluctl/kluctl/v2/pkg/git"
Expand Down
4 changes: 2 additions & 2 deletions e2e/helm_test.go
Expand Up @@ -2,8 +2,8 @@ package e2e

import (
"fmt"
"github.com/go-git/go-git/v5"
"github.com/go-git/go-git/v5/plumbing/object"
"github.com/fluxcd/go-git/v5"
"github.com/fluxcd/go-git/v5/plumbing/object"
test_utils "github.com/kluctl/kluctl/v2/e2e/test-utils"
"github.com/kluctl/kluctl/v2/pkg/utils/uo"
"github.com/stretchr/testify/assert"
Expand Down
2 changes: 1 addition & 1 deletion e2e/test-utils/project.go
Expand Up @@ -4,7 +4,7 @@ import (
"bytes"
"context"
"fmt"
"github.com/go-git/go-git/v5"
"github.com/fluxcd/go-git/v5"
"github.com/huandu/xstrings"
"github.com/jinzhu/copier"
"github.com/kluctl/kluctl/v2/cmd/kluctl/commands"
Expand Down
4 changes: 3 additions & 1 deletion go.mod
Expand Up @@ -10,8 +10,9 @@ require (
github.com/bitnami-labs/sealed-secrets v0.19.2
github.com/cyphar/filepath-securejoin v0.2.3
github.com/docker/distribution v2.8.1+incompatible
// See https://github.com/fluxcd/pkg/issues/397, especially in regard to skeema/knownhosts breaking compatibility
github.com/fluxcd/go-git/v5 v5.0.0-20221206140629-ec778c2c37df
github.com/fluxcd/pkg/kustomize v0.11.0
github.com/go-git/go-git/v5 v5.5.1
github.com/go-playground/validator/v10 v10.11.1
github.com/gobwas/glob v0.2.3 // indirect
github.com/golang-jwt/jwt/v4 v4.4.3
Expand Down Expand Up @@ -120,6 +121,7 @@ require (
github.com/go-errors/errors v1.4.2 // indirect
github.com/go-git/gcfg v1.5.0 // indirect
github.com/go-git/go-billy/v5 v5.3.1 // indirect
github.com/go-git/go-git/v5 v5.4.2 // indirect
github.com/go-gorp/gorp/v3 v3.1.0 // indirect
github.com/go-openapi/jsonpointer v0.19.5 // indirect
github.com/go-openapi/jsonreference v0.20.0 // indirect
Expand Down
31 changes: 25 additions & 6 deletions go.sum

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion pkg/git/auth/auth_provider.go
Expand Up @@ -2,7 +2,7 @@ package auth

import (
"context"
"github.com/go-git/go-git/v5/plumbing/transport"
"github.com/fluxcd/go-git/v5/plumbing/transport"
git_url "github.com/kluctl/kluctl/v2/pkg/git/git-url"
"github.com/kluctl/kluctl/v2/pkg/git/messages"
"golang.org/x/crypto/ssh"
Expand Down
2 changes: 1 addition & 1 deletion pkg/git/auth/git_credentials_file.go
Expand Up @@ -3,7 +3,7 @@ package auth
import (
"bufio"
"context"
"github.com/go-git/go-git/v5/plumbing/transport/http"
"github.com/fluxcd/go-git/v5/plumbing/transport/http"
git_url "github.com/kluctl/kluctl/v2/pkg/git/git-url"
"github.com/kluctl/kluctl/v2/pkg/git/messages"
giturls "github.com/whilp/git-urls"
Expand Down
4 changes: 2 additions & 2 deletions pkg/git/auth/list_auth_provider.go
Expand Up @@ -2,8 +2,8 @@ package auth

import (
"context"
"github.com/go-git/go-git/v5/plumbing/transport/http"
"github.com/go-git/go-git/v5/plumbing/transport/ssh"
"github.com/fluxcd/go-git/v5/plumbing/transport/http"
"github.com/fluxcd/go-git/v5/plumbing/transport/ssh"
"github.com/kluctl/kluctl/v2/pkg/git/git-url"
"github.com/kluctl/kluctl/v2/pkg/git/messages"
ssh2 "golang.org/x/crypto/ssh"
Expand Down
10 changes: 5 additions & 5 deletions pkg/git/list_refs.go
Expand Up @@ -4,11 +4,11 @@ import (
"bytes"
"context"
"fmt"
"github.com/go-git/go-git/v5"
"github.com/go-git/go-git/v5/config"
"github.com/go-git/go-git/v5/plumbing"
"github.com/go-git/go-git/v5/plumbing/protocol/packp"
"github.com/go-git/go-git/v5/storage/memory"
"github.com/fluxcd/go-git/v5"
"github.com/fluxcd/go-git/v5/config"
"github.com/fluxcd/go-git/v5/plumbing"
"github.com/fluxcd/go-git/v5/plumbing/protocol/packp"
"github.com/fluxcd/go-git/v5/storage/memory"
auth2 "github.com/kluctl/kluctl/v2/pkg/git/auth"
git_url "github.com/kluctl/kluctl/v2/pkg/git/git-url"
ssh_pool "github.com/kluctl/kluctl/v2/pkg/git/ssh-pool"
Expand Down
8 changes: 4 additions & 4 deletions pkg/git/mirrored_repo.go
Expand Up @@ -5,10 +5,10 @@ import (
"crypto/sha256"
"encoding/hex"
"fmt"
"github.com/go-git/go-git/v5"
"github.com/go-git/go-git/v5/config"
"github.com/go-git/go-git/v5/plumbing"
"github.com/go-git/go-git/v5/plumbing/object"
"github.com/fluxcd/go-git/v5"
"github.com/fluxcd/go-git/v5/config"
"github.com/fluxcd/go-git/v5/plumbing"
"github.com/fluxcd/go-git/v5/plumbing/object"
auth2 "github.com/kluctl/kluctl/v2/pkg/git/auth"
git_url "github.com/kluctl/kluctl/v2/pkg/git/git-url"
_ "github.com/kluctl/kluctl/v2/pkg/git/ssh-pool"
Expand Down
4 changes: 2 additions & 2 deletions pkg/git/poor_mans_clone.go
@@ -1,8 +1,8 @@
package git

import (
"github.com/go-git/go-git/v5"
"github.com/go-git/go-git/v5/config"
"github.com/fluxcd/go-git/v5"
"github.com/fluxcd/go-git/v5/config"
cp "github.com/otiai10/copy"
"os"
"path/filepath"
Expand Down
2 changes: 1 addition & 1 deletion pkg/git/ssh-pool/hostport.go
Expand Up @@ -2,7 +2,7 @@ package ssh_pool

import (
"fmt"
"github.com/go-git/go-git/v5/plumbing/transport/ssh"
"github.com/fluxcd/go-git/v5/plumbing/transport/ssh"
"strconv"
)

Expand Down
2 changes: 1 addition & 1 deletion pkg/git/test_git_server.go
Expand Up @@ -3,7 +3,7 @@ package git
import (
"context"
"fmt"
"github.com/go-git/go-git/v5"
"github.com/fluxcd/go-git/v5"
"github.com/jinzhu/copier"
http_server "github.com/kluctl/kluctl/v2/pkg/git/http-server"
"gopkg.in/yaml.v3"
Expand Down
2 changes: 1 addition & 1 deletion pkg/git/utils.go
Expand Up @@ -2,7 +2,7 @@ package git

import (
"fmt"
"github.com/go-git/go-git/v5"
"github.com/fluxcd/go-git/v5"
"os"
"path/filepath"
)
Expand Down
4 changes: 2 additions & 2 deletions pkg/vars/vars_loader_test.go
Expand Up @@ -2,8 +2,8 @@ package vars

import (
"context"
git2 "github.com/go-git/go-git/v5"
"github.com/go-git/go-git/v5/plumbing"
git2 "github.com/fluxcd/go-git/v5"
"github.com/fluxcd/go-git/v5/plumbing"
"github.com/kluctl/kluctl/v2/pkg/git"
"github.com/kluctl/kluctl/v2/pkg/git/auth"
git_url "github.com/kluctl/kluctl/v2/pkg/git/git-url"
Expand Down

0 comments on commit 690228f

Please sign in to comment.