Skip to content

Commit

Permalink
chore: upgrade go-getter to v2 (#395)
Browse files Browse the repository at this point in the history
* chore: upgrade go-getter to v2
* fix: make File interface unambiguous
  • Loading branch information
theseion authored Nov 10, 2024
1 parent 00ec2f3 commit 59c3eab
Show file tree
Hide file tree
Showing 9 changed files with 76 additions and 924 deletions.
4 changes: 2 additions & 2 deletions experimental/corpus/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ type File interface {
// WithCacheDir sets the cache directory
WithCacheDir(cacheDir string) File

// WithFilePath sets the file path
WithFilePath(filePath string) File
// WithFileName sets the filename
WithFileName(fileName string) File
}

// Corpus is the interface that must be implemented to make a corpus available to clients
Expand Down
2 changes: 1 addition & 1 deletion ftwhttp/request_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ func (s *requestTestSuite) TestRequestRawData() {
s.Equal([]byte("This is the RAW data now"), req.RawData())
}

func (s *requestTestSuite) TestRequestSettingDataaWhenThereIsRawData() {
func (s *requestTestSuite) TestRequestSettingDataWhenThereIsRawData() {
req := generateBaseRawRequestForTesting()

err := req.SetData([]byte("This is the data now"))
Expand Down
32 changes: 7 additions & 25 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ require (
github.com/creativeprojects/go-selfupdate v1.4.0
github.com/go-logr/zerologr v1.2.3
github.com/google/uuid v1.6.0
github.com/hashicorp/go-getter v1.7.6
github.com/hashicorp/go-getter/v2 v2.2.3
github.com/icza/backscanner v0.0.0-20240328210400-b40c3a86dec5
github.com/knadh/koanf/parsers/yaml v0.1.0
Expand All @@ -29,42 +28,37 @@ require (
)

require (
cloud.google.com/go v0.112.1 // indirect
cloud.google.com/go/compute/metadata v0.3.0 // indirect
cloud.google.com/go/iam v1.1.6 // indirect
cloud.google.com/go/storage v1.38.0 // indirect
github.com/google/go-cmp v0.6.0 // indirect
github.com/hashicorp/errwrap v1.0.0 // indirect
github.com/hashicorp/go-multierror v1.1.0 // indirect
golang.org/x/xerrors v0.0.0-20231012003039-104605ab7028 // indirect
)

require (
code.gitea.io/sdk/gitea v0.19.0 // indirect
github.com/Masterminds/goutils v1.1.1 // indirect
github.com/Masterminds/semver v1.5.0 // indirect
github.com/Masterminds/semver/v3 v3.3.0 // indirect
github.com/antchfx/htmlquery v1.3.2 // indirect
github.com/antchfx/xpath v1.3.1 // indirect
github.com/aws/aws-sdk-go v1.44.122 // indirect
github.com/bgentry/go-netrc v0.0.0-20140422174119-9fd32a8b3d3d // indirect
github.com/corazawaf/libinjection-go v0.2.1 // indirect
github.com/davecgh/go-spew v1.1.1 // indirect
github.com/davidmz/go-pageant v1.0.2 // indirect
github.com/felixge/httpsnoop v1.0.4 // indirect
github.com/fsnotify/fsnotify v1.7.0 // indirect
github.com/go-fed/httpsig v1.1.0 // indirect
github.com/go-logr/logr v1.4.2 // indirect
github.com/go-logr/stdr v1.2.2 // indirect
github.com/go-viper/mapstructure/v2 v2.0.0-alpha.1 // indirect
github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect
github.com/golang/protobuf v1.5.4 // indirect
github.com/google/go-github/v30 v30.1.0 // indirect
github.com/google/go-querystring v1.1.0 // indirect
github.com/google/s2a-go v0.1.7 // indirect
github.com/googleapis/enterprise-certificate-proxy v0.3.2 // indirect
github.com/googleapis/gax-go/v2 v2.12.2 // indirect
github.com/hashicorp/go-cleanhttp v0.5.2 // indirect
github.com/hashicorp/go-retryablehttp v0.7.7 // indirect
github.com/hashicorp/go-safetemp v1.0.0 // indirect
github.com/hashicorp/go-version v1.7.0 // indirect
github.com/huandu/xstrings v1.3.3 // indirect
github.com/imdario/mergo v0.3.13 // indirect
github.com/inconshreveable/mousetrap v1.1.0 // indirect
github.com/jmespath/go-jmespath v0.4.0 // indirect
github.com/klauspost/compress v1.17.4 // indirect
github.com/knadh/koanf/maps v0.1.1 // indirect
github.com/mattn/go-colorable v0.1.13 // indirect
Expand All @@ -82,23 +76,11 @@ require (
github.com/tidwall/pretty v1.2.1 // indirect
github.com/ulikunitz/xz v0.5.12 // indirect
github.com/xanzy/go-gitlab v0.112.0 // 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/metric v1.24.0 // indirect
go.opentelemetry.io/otel/trace v1.24.0 // indirect
golang.org/x/crypto v0.28.0 // indirect
golang.org/x/oauth2 v0.23.0 // indirect
golang.org/x/sync v0.8.0 // indirect; indirectt
golang.org/x/sys v0.26.0 // indirect
golang.org/x/text v0.19.0 // indirect
google.golang.org/api v0.169.0 // indirect
google.golang.org/genproto v0.0.0-20240213162025-012b6fc9bca9 // indirect
google.golang.org/genproto/googleapis/api v0.0.0-20240827150818-7e3bb234dfed // indirect
google.golang.org/genproto/googleapis/rpc v0.0.0-20240827150818-7e3bb234dfed // indirect
google.golang.org/grpc v1.66.1 // indirect
google.golang.org/protobuf v1.34.2 // indirect
gopkg.in/yaml.v3 v3.0.1
rsc.io/binaryregexp v0.2.0 // indirect
)
Loading

0 comments on commit 59c3eab

Please sign in to comment.