Skip to content

Commit

Permalink
fix(deps): update module github.com/hashicorp/go-getter to v2 (#154)
Browse files Browse the repository at this point in the history
* fix(deps): update module github.com/hashicorp/go-getter to v2

* fix(deps): update module github.com/hashicorp/go-getter to v2

* go-getter v2 code change

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: TimHuynh <[email protected]>
  • Loading branch information
renovate[bot] and timhuynh94 authored Jul 14, 2023
1 parent 5d9dcc1 commit 21d74d8
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 482 deletions.
5 changes: 3 additions & 2 deletions cmd/vela-kubernetes/kubectl.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,12 @@
package main

import (
"context"
"fmt"
"runtime"
"strings"

getter "github.com/hashicorp/go-getter"
getter "github.com/hashicorp/go-getter/v2"
"github.com/sirupsen/logrus"
"github.com/spf13/afero"
)
Expand Down Expand Up @@ -47,7 +48,7 @@ func install(customVer, defaultVer string) error {

logrus.Infof("downloading kubectl version from: %s", url)
// send the HTTP request to install kubectl
err = getter.GetFile(_kubectl, url, []getter.ClientOption{}...)
_, err = getter.GetFile(context.Background(), _kubectl, url)
if err != nil {
return err
}
Expand Down
26 changes: 4 additions & 22 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -5,47 +5,29 @@ go 1.20
require (
github.com/Masterminds/semver/v3 v3.2.1
github.com/go-vela/types v0.19.2
github.com/hashicorp/go-getter v1.7.1
github.com/hashicorp/go-getter/v2 v2.2.1
github.com/joho/godotenv v1.5.1
github.com/sirupsen/logrus v1.9.3
github.com/spf13/afero v1.9.5
github.com/urfave/cli/v2 v2.25.7
)

require (
cloud.google.com/go v0.110.0 // indirect
cloud.google.com/go/compute v1.19.0 // indirect
cloud.google.com/go/compute/metadata v0.2.3 // indirect
cloud.google.com/go/iam v0.13.0 // indirect
cloud.google.com/go/storage v1.30.1 // indirect
github.com/aws/aws-sdk-go v1.44.232 // indirect
github.com/bgentry/go-netrc v0.0.0-20140422174119-9fd32a8b3d3d // indirect
github.com/cpuguy83/go-md2man/v2 v2.0.2 // indirect
github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect
github.com/golang/protobuf v1.5.3 // indirect
github.com/google/go-cmp v0.5.9 // indirect
github.com/google/uuid v1.3.0 // indirect
github.com/googleapis/enterprise-certificate-proxy v0.2.3 // indirect
github.com/googleapis/gax-go/v2 v2.8.0 // 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/jmespath/go-jmespath v0.4.0 // indirect
github.com/klauspost/compress v1.16.3 // indirect
github.com/mitchellh/go-homedir v1.1.0 // indirect
github.com/mitchellh/go-testing-interface v1.14.1 // indirect
github.com/russross/blackfriday/v2 v2.1.0 // indirect
github.com/stretchr/testify v1.8.1 // indirect
github.com/ulikunitz/xz v0.5.11 // indirect
github.com/xrash/smetrics v0.0.0-20201216005158-039620a65673 // indirect
go.opencensus.io v0.24.0 // indirect
golang.org/x/net v0.8.0 // indirect
golang.org/x/oauth2 v0.6.0 // indirect
golang.org/x/sys v0.6.0 // indirect
golang.org/x/text v0.8.0 // indirect
golang.org/x/xerrors v0.0.0-20220907171357-04be3eba64a2 // indirect
google.golang.org/api v0.114.0 // indirect
google.golang.org/appengine v1.6.7 // indirect
google.golang.org/genproto v0.0.0-20230327215041-6ac7f18bb9d5 // indirect
google.golang.org/grpc v1.54.0 // indirect
google.golang.org/protobuf v1.30.0 // indirect
)
Loading

0 comments on commit 21d74d8

Please sign in to comment.