Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update module github.com/hashicorp/go-getter to v2 - autoclosed #419

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion config.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"github.com/blang/semver/v4"
"github.com/coveooss/gotemplate/v3/collections"
"github.com/fatih/color"
"github.com/hashicorp/go-getter"
"github.com/hashicorp/go-getter/v2"
"github.com/minio/selfupdate"
yaml "gopkg.in/yaml.v2"
)
Expand Down Expand Up @@ -581,9 +581,9 @@
fullConfigPath := location + configPath
destConfigPath := path.Join(tempDir, configPath)
log.Debugln("Reading configuration from", fullConfigPath)
source := must(getter.Detect(fullConfigPath, must(os.Getwd()).(string), getter.Detectors)).(string)

Check failure on line 584 in config.go

View workflow job for this annotation

GitHub Actions / goreleaser-test-release

too many arguments in call to getter.Detect

Check failure on line 584 in config.go

View workflow job for this annotation

GitHub Actions / goreleaser-test-release

undefined: getter.Detectors

Check failure on line 584 in config.go

View workflow job for this annotation

GitHub Actions / test (ubuntu-latest)

too many arguments in call to getter.Detect

Check failure on line 584 in config.go

View workflow job for this annotation

GitHub Actions / test (ubuntu-latest)

undefined: getter.Detectors

err := getter.GetFile(destConfigPath, source)

Check failure on line 586 in config.go

View workflow job for this annotation

GitHub Actions / goreleaser-test-release

assignment mismatch: 1 variable but getter.GetFile returns 2 values

Check failure on line 586 in config.go

View workflow job for this annotation

GitHub Actions / goreleaser-test-release

not enough arguments in call to getter.GetFile

Check failure on line 586 in config.go

View workflow job for this annotation

GitHub Actions / test (ubuntu-latest)

assignment mismatch: 1 variable but getter.GetFile returns 2 values

Check failure on line 586 in config.go

View workflow job for this annotation

GitHub Actions / test (ubuntu-latest)

not enough arguments in call to getter.GetFile
if err == nil {
_, err = os.Stat(destConfigPath)
if os.IsNotExist(err) {
Expand Down
23 changes: 3 additions & 20 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ require (
github.com/coveord/kingpin/v2 v2.4.2
github.com/docker/docker v25.0.3+incompatible
github.com/fatih/color v1.16.0
github.com/hashicorp/go-getter v1.7.3
github.com/hashicorp/go-getter/v2 v2.2.1
github.com/minio/selfupdate v0.6.0
github.com/sirupsen/logrus v1.9.3
github.com/stretchr/testify v1.9.0
Expand All @@ -26,11 +26,6 @@ require (

require (
aead.dev/minisign v0.2.1 // indirect
cloud.google.com/go v0.112.1 // indirect
cloud.google.com/go/compute v1.25.0 // indirect
cloud.google.com/go/compute/metadata v0.2.3 // indirect
cloud.google.com/go/iam v1.1.6 // indirect
cloud.google.com/go/storage v1.39.0 // indirect
github.com/Masterminds/goutils v1.1.1 // indirect
github.com/Masterminds/semver/v3 v3.2.1 // indirect
github.com/Masterminds/sprig/v3 v3.2.3 // indirect
Expand All @@ -40,7 +35,6 @@ require (
github.com/alecthomas/template v0.0.0-20190718012654-fb15b899a751 // indirect
github.com/alecthomas/units v0.0.0-20231202071711-9a357b53e9c9 // indirect
github.com/andybalholm/cascadia v1.3.2 // indirect
github.com/aws/aws-sdk-go v1.50.31 // indirect
github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.15.2 // indirect
github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.2 // indirect
github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.2 // indirect
Expand All @@ -61,13 +55,10 @@ require (
github.com/go-logr/logr v1.4.1 // indirect
github.com/go-logr/stdr v1.2.2 // indirect
github.com/gogo/protobuf v1.3.2 // indirect
github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect
github.com/golang/protobuf v1.5.3 // indirect
github.com/google/s2a-go v0.1.7 // indirect
github.com/google/uuid v1.6.0 // indirect
github.com/googleapis/enterprise-certificate-proxy v0.3.2 // indirect
github.com/googleapis/gax-go/v2 v2.12.2 // indirect
github.com/hashicorp/errwrap v1.0.0 // indirect
github.com/hashicorp/go-cleanhttp v0.5.2 // indirect
github.com/hashicorp/go-multierror v1.1.0 // indirect
github.com/hashicorp/go-safetemp v1.0.0 // indirect
github.com/hashicorp/go-version v1.6.0 // indirect
github.com/hashicorp/hcl v1.0.0 // indirect
Expand Down Expand Up @@ -95,8 +86,6 @@ require (
github.com/src-d/gcfg v1.4.0 // indirect
github.com/ulikunitz/xz v0.5.11 // indirect
github.com/xanzy/ssh-agent v0.3.3 // indirect
go.opencensus.io v0.24.0 // indirect
go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.49.0 // indirect
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.49.0 // indirect
go.opentelemetry.io/otel v1.24.0 // indirect
go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp v1.24.0 // indirect
Expand All @@ -106,16 +95,10 @@ require (
golang.org/x/crypto v0.21.0 // indirect
golang.org/x/mod v0.16.0 // indirect
golang.org/x/net v0.22.0 // indirect
golang.org/x/oauth2 v0.18.0 // indirect
golang.org/x/sync v0.6.0 // indirect
golang.org/x/sys v0.18.0 // indirect
golang.org/x/term v0.18.0 // indirect
golang.org/x/text v0.14.0 // indirect
golang.org/x/time v0.5.0 // indirect
golang.org/x/tools v0.19.0 // indirect
google.golang.org/api v0.168.0 // indirect
google.golang.org/appengine v1.6.8 // indirect
google.golang.org/genproto v0.0.0-20240304212257-790db918fca8 // indirect
google.golang.org/genproto/googleapis/api v0.0.0-20240304212257-790db918fca8 // indirect
google.golang.org/genproto/googleapis/rpc v0.0.0-20240304212257-790db918fca8 // indirect
google.golang.org/grpc v1.62.0 // indirect
Expand Down
Loading
Loading