diff --git a/azureparser/v1/parser.go b/azureparser/v1/parser.go index 45d5493..616087d 100644 --- a/azureparser/v1/parser.go +++ b/azureparser/v1/parser.go @@ -6,9 +6,9 @@ import ( "os" "strings" + giturl "github.com/chainguard-dev/git-urls" "github.com/kubescape/go-git-url/apis" "github.com/kubescape/go-git-url/apis/azureapi" - giturl "github.com/whilp/git-urls" ) const HOST = "azure.com" diff --git a/bitbucketparser/v1/parser.go b/bitbucketparser/v1/parser.go index b1c49b5..351d24d 100644 --- a/bitbucketparser/v1/parser.go +++ b/bitbucketparser/v1/parser.go @@ -6,9 +6,9 @@ import ( "os" "strings" + giturl "github.com/chainguard-dev/git-urls" "github.com/kubescape/go-git-url/apis" "github.com/kubescape/go-git-url/apis/bitbucketapi" - giturl "github.com/whilp/git-urls" ) const HOST = "bitbucket.org" diff --git a/githubparser/v1/parser.go b/githubparser/v1/parser.go index 37a03ff..56f8fd0 100644 --- a/githubparser/v1/parser.go +++ b/githubparser/v1/parser.go @@ -6,9 +6,9 @@ import ( "os" "strings" + giturl "github.com/chainguard-dev/git-urls" "github.com/kubescape/go-git-url/apis" "github.com/kubescape/go-git-url/apis/githubapi" - giturl "github.com/whilp/git-urls" ) // NewGitHubParser empty instance of a github parser diff --git a/gitlabparser/v1/parser.go b/gitlabparser/v1/parser.go index ce4c65d..d423ca5 100644 --- a/gitlabparser/v1/parser.go +++ b/gitlabparser/v1/parser.go @@ -6,9 +6,9 @@ import ( "os" "strings" + giturl "github.com/chainguard-dev/git-urls" "github.com/kubescape/go-git-url/apis" "github.com/kubescape/go-git-url/apis/gitlabapi" - giturl "github.com/whilp/git-urls" ) const HOST = "gitlab.com" diff --git a/go.mod b/go.mod index bde1f68..8671cb1 100644 --- a/go.mod +++ b/go.mod @@ -3,8 +3,8 @@ module github.com/kubescape/go-git-url go 1.19 require ( + github.com/chainguard-dev/git-urls v1.0.2 github.com/stretchr/testify v1.3.0 - github.com/whilp/git-urls v1.0.0 k8s.io/utils v0.0.0-20220210201930-3a6ce19ff2f9 ) diff --git a/go.sum b/go.sum index 7908f3d..ff1141e 100644 --- a/go.sum +++ b/go.sum @@ -1,3 +1,5 @@ +github.com/chainguard-dev/git-urls v1.0.2 h1:pSpT7ifrpc5X55n4aTTm7FFUE+ZQHKiqpiwNkJrVcKQ= +github.com/chainguard-dev/git-urls v1.0.2/go.mod h1:rbGgj10OS7UgZlbzdUQIQpT0k/D4+An04HJY7Ol+Y/o= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= @@ -8,8 +10,6 @@ github.com/spf13/afero v1.2.2/go.mod h1:9ZxEEn6pIJ8Rxe320qSDBk6AsU0r9pR7Q4OcevTd github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= github.com/stretchr/testify v1.3.0 h1:TivCn/peBQ7UY8ooIcPgZFpTNSz0Q2U6UrFlUfqbe0Q= github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI= -github.com/whilp/git-urls v1.0.0 h1:95f6UMWN5FKW71ECsXRUd3FVYiXdrE7aX4NZKcPmIjU= -github.com/whilp/git-urls v1.0.0/go.mod h1:J16SAmobsqc3Qcy98brfl5f5+e0clUvg1krgwk/qCfE= golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= k8s.io/klog/v2 v2.0.0/go.mod h1:PBfzABfn139FHAV07az/IF9Wp1bkk3vpT2XSJ76fSDE= k8s.io/utils v0.0.0-20220210201930-3a6ce19ff2f9 h1:HNSDgDCrr/6Ly3WEGKZftiE7IY19Vz2GdbOCyI4qqhc= diff --git a/init.go b/init.go index 00bf54d..ea792ae 100644 --- a/init.go +++ b/init.go @@ -3,7 +3,7 @@ package giturl import ( "fmt" - giturl "github.com/whilp/git-urls" + giturl "github.com/chainguard-dev/git-urls" "github.com/kubescape/go-git-url/apis/azureapi" "github.com/kubescape/go-git-url/apis/bitbucketapi"