Skip to content

Commit

Permalink
fix: update all dependencies
Browse files Browse the repository at this point in the history
Signed-off-by: Ilya Lesikov <ilya@lesikov.com>
  • Loading branch information
ilya-lesikov committed Mar 17, 2023
1 parent 7c757a3 commit 777331d
Show file tree
Hide file tree
Showing 20 changed files with 1,387 additions and 736 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
go-version-file: ${{ matrix.directory }}/go.mod

- name: Install linter
run: curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.46.2
run: curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.50.0
- name: Lint
working-directory: ${{ matrix.directory }}
run: make lint
4 changes: 2 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ jobs:
echo "~/.local/bin" >> $GITHUB_PATH
# install ginkgo
go install github.com/onsi/ginkgo/ginkgo@latest
go install github.com/onsi/ginkgo/v2/ginkgo@latest
shell: bash

- name: Test
Expand Down Expand Up @@ -109,7 +109,7 @@ jobs:
make install
echo "~/.local/bin" >> $GITHUB_PATH
go install github.com/onsi/ginkgo/ginkgo@latest
go install github.com/onsi/ginkgo/v2/ginkgo@latest
- name: Test
working-directory: e2e
Expand Down
3 changes: 3 additions & 0 deletions client/cmd/trdl/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ func rootCmd() *cobra.Command {
Long: "The universal package manager for delivering your software updates securely from a TUF repository (more details on https://trdl.dev)",
SilenceUsage: true,
SilenceErrors: true,
CompletionOptions: cobra.CompletionOptions{
DisableDefaultCmd: true,
},
}

rootCmd.SetHelpCommand(&cobra.Command{Hidden: true})
Expand Down
8 changes: 2 additions & 6 deletions client/cmd/trdl/main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,6 @@ func TestRunMain(t *testing.T) {
}

func discardStdOut() {
w, err := os.Open(os.DevNull)
if err != nil {
panic(err)
}

os.Stdout = w
devnull, _ := os.OpenFile(os.DevNull, os.O_WRONLY, 0o755)
os.Stdout = devnull
}
22 changes: 11 additions & 11 deletions client/go.mod
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
module github.com/werf/trdl/client

go 1.18
go 1.20

require (
bou.ke/monkey v1.0.2
github.com/asaskevich/govalidator v0.0.0-20210307081110-f21760c49a8d
github.com/gookit/color v1.4.2
github.com/asaskevich/govalidator v0.0.0-20230301143203-a9d515a09cc2
github.com/gookit/color v1.5.2
github.com/inconshreveable/go-update v0.0.0-20160112193335-8152e7eb6ccf
github.com/rodaine/table v1.0.1
github.com/rodaine/table v1.1.0
github.com/spaolacci/murmur3 v1.1.0
github.com/spf13/cobra v1.1.3
github.com/spf13/cobra v1.6.1
github.com/spf13/pflag v1.0.5
github.com/theupdateframework/go-tuf v0.0.0-20201230183259-aee6270feb55
github.com/werf/lockgate v0.0.0-20210423043214-fd4df31c9ab0
github.com/theupdateframework/go-tuf v0.5.2
github.com/werf/lockgate v0.0.0-20211004100849-f85d5325b201
github.com/werf/logboek v0.5.4
gopkg.in/yaml.v3 v3.0.1
mvdan.cc/xurls v1.1.0
Expand All @@ -22,17 +22,17 @@ require (
github.com/avelino/slugify v0.0.0-20180501145920-855f152bd774 // indirect
github.com/gofrs/flock v0.7.1 // indirect
github.com/golang/snappy v0.0.4 // indirect
github.com/google/uuid v1.1.1 // indirect
github.com/inconshreveable/mousetrap v1.0.0 // indirect
github.com/google/uuid v1.1.2 // indirect
github.com/inconshreveable/mousetrap v1.0.1 // indirect
github.com/mvdan/xurls v1.1.0 // indirect
github.com/secure-systems-lab/go-securesystemslib v0.4.0 // indirect
github.com/syndtr/goleveldb v1.0.1-0.20220721030215-126854af5e6d // indirect
github.com/xo/terminfo v0.0.0-20210125001918-ca9a967f8778 // indirect
golang.org/x/crypto v0.0.0-20211117183948-ae814b36b871 // indirect
golang.org/x/net v0.0.0-20220607020251-c690dde0001d // indirect
golang.org/x/sys v0.0.0-20220520151302-bc2c85ada10a // indirect
golang.org/x/sys v0.0.0-20220722155257-8c9f86f7a55f // indirect
golang.org/x/term v0.0.0-20210927222741-03fcf44c2211 // indirect
golang.org/x/text v0.3.7 // indirect
)

replace github.com/theupdateframework/go-tuf => github.com/werf/3p-go-tuf v0.0.0-20220916152539-6f59db8c7ce8
replace github.com/theupdateframework/go-tuf => github.com/werf/3p-go-tuf v0.0.0-20230315082915-5fc159235553
439 changes: 384 additions & 55 deletions client/go.sum

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion client/trdl.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
docker_image: golang:1.19.1-alpine@sha256:ca4f0513119dfbdc65ae7b76b69688f0723ed00d9ecf9de68abbf6ed01ef11bf
docker_image: golang:1.20.2-alpine3.17@sha256:4e6bc0eafc261b6c8ba9bd9999b6698e8cefbe21e6d90fbc10c34599d75dc608
commands:
- go install github.com/mitchellh/gox@8c3b2b9e647dc52457d6ee7b5adcf97e2bafe131
- cd client && ./scripts/ci/build_release_v2.sh {{ .Tag }} && cp -a release-build/{{ .Tag }}/* /result
4 changes: 2 additions & 2 deletions client/trdl_channels.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ groups:
- name: "0"
channels:
- name: alpha
version: 0.6.3
version: 0.6.4
- name: stable
version: 0.6.3
version: 0.6.4
118 changes: 60 additions & 58 deletions e2e/go.mod
Original file line number Diff line number Diff line change
@@ -1,111 +1,113 @@
module github.com/werf/trdl/e2e

go 1.18
go 1.20

require (
github.com/hashicorp/go-hclog v0.16.1
github.com/hashicorp/vault/sdk v0.2.1
github.com/onsi/ginkgo/v2 v2.1.3
github.com/onsi/gomega v1.19.0
github.com/prashantv/gostub v1.0.0
github.com/hashicorp/go-hclog v1.4.0
github.com/hashicorp/vault/sdk v0.8.1
github.com/onsi/ginkgo/v2 v2.9.1
github.com/onsi/gomega v1.27.4
github.com/prashantv/gostub v1.1.0
github.com/werf/trdl/client v0.0.0
github.com/werf/trdl/server v0.0.0
gopkg.in/yaml.v2 v2.4.0
)

require (
github.com/Azure/go-ansiterm v0.0.0-20170929234023-d6e3b3328b78 // indirect
github.com/Azure/go-ansiterm v0.0.0-20210617225240-d185dfc1b5a1 // indirect
github.com/Masterminds/goutils v1.1.1 // indirect
github.com/Masterminds/semver v1.5.0 // indirect
github.com/Microsoft/go-winio v0.4.16 // indirect
github.com/armon/go-metrics v0.3.3 // indirect
github.com/Microsoft/go-winio v0.5.2 // indirect
github.com/ProtonMail/go-crypto v0.0.0-20221026131551-cf6655e29de4 // indirect
github.com/acomagu/bufpipe v1.0.3 // indirect
github.com/armon/go-metrics v0.3.9 // indirect
github.com/armon/go-radix v1.0.0 // indirect
github.com/asaskevich/govalidator v0.0.0-20210307081110-f21760c49a8d // indirect
github.com/avelino/slugify v0.0.0-20180501145920-855f152bd774 // indirect
github.com/aws/aws-sdk-go v1.30.27 // indirect
github.com/containerd/containerd v1.3.4 // indirect
github.com/aws/aws-sdk-go v1.44.221 // indirect
github.com/cloudflare/circl v1.1.0 // indirect
github.com/djherbis/buffer v1.2.0 // indirect
github.com/djherbis/nio/v3 v3.0.1 // indirect
github.com/docker/distribution v2.7.1+incompatible // indirect
github.com/docker/docker v1.4.2-0.20200319182547-c7ad2b866182 // indirect
github.com/docker/distribution v2.8.1+incompatible // indirect
github.com/docker/docker v23.0.1+incompatible // indirect
github.com/docker/go-connections v0.4.0 // indirect
github.com/docker/go-units v0.4.0 // indirect
github.com/emirpasic/gods v1.12.0 // indirect
github.com/fatih/color v1.7.0 // indirect
github.com/emirpasic/gods v1.18.1 // indirect
github.com/evanphx/json-patch/v5 v5.5.0 // indirect
github.com/fatih/color v1.13.0 // indirect
github.com/fatih/structs v1.1.0 // indirect
github.com/go-git/gcfg v1.5.0 // indirect
github.com/go-git/go-billy/v5 v5.1.0 // indirect
github.com/go-git/go-git/v5 v5.3.0 // indirect
github.com/gofrs/flock v0.7.1 // indirect
github.com/go-git/go-billy/v5 v5.4.1 // indirect
github.com/go-git/go-git/v5 v5.6.0 // indirect
github.com/go-logr/logr v1.2.3 // indirect
github.com/go-task/slim-sprig v0.0.0-20210107165309-348f09dbbbc0 // indirect
github.com/gogo/protobuf v1.3.1 // indirect
github.com/golang/protobuf v1.5.2 // indirect
github.com/golang/protobuf v1.5.3 // indirect
github.com/golang/snappy v0.0.4 // indirect
github.com/google/uuid v1.1.1 // indirect
github.com/gookit/color v1.4.2 // indirect
github.com/hashicorp/errwrap v1.0.0 // indirect
github.com/hashicorp/go-immutable-radix v1.1.0 // indirect
github.com/hashicorp/go-kms-wrapping/entropy v0.1.0 // indirect
github.com/hashicorp/go-multierror v1.1.0 // indirect
github.com/hashicorp/go-plugin v1.0.1 // indirect
github.com/google/go-cmp v0.5.9 // indirect
github.com/google/pprof v0.0.0-20210407192527-94a9f03dee38 // indirect
github.com/gookit/color v1.5.2 // indirect
github.com/hashicorp/errwrap v1.1.0 // indirect
github.com/hashicorp/go-immutable-radix v1.3.1 // indirect
github.com/hashicorp/go-kms-wrapping/entropy/v2 v2.0.0 // indirect
github.com/hashicorp/go-kms-wrapping/v2 v2.0.7 // indirect
github.com/hashicorp/go-multierror v1.1.1 // indirect
github.com/hashicorp/go-plugin v1.4.5 // indirect
github.com/hashicorp/go-secure-stdlib/mlock v0.1.1 // indirect
github.com/hashicorp/go-secure-stdlib/parseutil v0.1.6 // indirect
github.com/hashicorp/go-secure-stdlib/strutil v0.1.2 // indirect
github.com/hashicorp/go-sockaddr v1.0.2 // indirect
github.com/hashicorp/go-uuid v1.0.2 // indirect
github.com/hashicorp/go-version v1.2.0 // indirect
github.com/hashicorp/golang-lru v0.5.3 // indirect
github.com/hashicorp/golang-lru v0.5.4 // indirect
github.com/hashicorp/yamux v0.0.0-20180604194846-3520598351bb // indirect
github.com/imdario/mergo v0.3.12 // indirect
github.com/inconshreveable/go-update v0.0.0-20160112193335-8152e7eb6ccf // indirect
github.com/inconshreveable/mousetrap v1.0.0 // indirect
github.com/imdario/mergo v0.3.13 // indirect
github.com/jbenet/go-context v0.0.0-20150711004518-d14ea06fba99 // indirect
github.com/jmespath/go-jmespath v0.3.0 // indirect
github.com/kevinburke/ssh_config v0.0.0-20201106050909-4977a11b4351 // indirect
github.com/konsorten/go-windows-terminal-sequences v1.0.1 // indirect
github.com/mattn/go-colorable v0.1.6 // indirect
github.com/mattn/go-isatty v0.0.12 // indirect
github.com/jmespath/go-jmespath v0.4.0 // indirect
github.com/kevinburke/ssh_config v1.2.0 // indirect
github.com/mattn/go-colorable v0.1.12 // indirect
github.com/mattn/go-isatty v0.0.14 // indirect
github.com/mitchellh/copystructure v1.0.0 // indirect
github.com/mitchellh/go-homedir v1.1.0 // indirect
github.com/mitchellh/go-testing-interface v1.0.0 // indirect
github.com/mitchellh/mapstructure v1.3.2 // indirect
github.com/mitchellh/mapstructure v1.5.0 // indirect
github.com/mitchellh/reflectwalk v1.0.0 // indirect
github.com/moby/term v0.0.0-20221205130635-1aeaba878587 // indirect
github.com/morikuni/aec v1.0.0 // indirect
github.com/oklog/run v1.0.0 // indirect
github.com/opencontainers/go-digest v1.0.0 // indirect
github.com/opencontainers/image-spec v1.0.1 // indirect
github.com/otiai10/copy v1.7.0 // indirect
github.com/otiai10/copy v1.9.0 // indirect
github.com/pierrec/lz4 v2.5.2+incompatible // indirect
github.com/pjbgf/sha1cd v0.3.0 // indirect
github.com/pkg/errors v0.9.1 // indirect
github.com/rodaine/table v1.0.1 // indirect
github.com/ryanuber/go-glob v1.0.0 // indirect
github.com/samber/lo v1.28.0 // indirect
github.com/samber/lo v1.37.0 // indirect
github.com/satori/go.uuid v1.2.0 // indirect
github.com/secure-systems-lab/go-securesystemslib v0.4.0 // indirect
github.com/sergi/go-diff v1.1.0 // indirect
github.com/sirupsen/logrus v1.4.2 // indirect
github.com/skeema/knownhosts v1.1.0 // indirect
github.com/spaolacci/murmur3 v1.1.0 // indirect
github.com/spf13/cobra v1.1.3 // indirect
github.com/spf13/pflag v1.0.5 // indirect
github.com/syndtr/goleveldb v1.0.1-0.20220721030215-126854af5e6d // indirect
github.com/theupdateframework/go-tuf v0.0.0-20201230183259-aee6270feb55 // indirect
github.com/werf/lockgate v0.0.0-20210423043214-fd4df31c9ab0 // indirect
github.com/theupdateframework/go-tuf v0.5.2 // indirect
github.com/werf/lockgate v0.0.0-20211004100849-f85d5325b201 // indirect
github.com/werf/logboek v0.5.4 // indirect
github.com/xanzy/ssh-agent v0.3.0 // indirect
github.com/xanzy/ssh-agent v0.3.3 // indirect
github.com/xo/terminfo v0.0.0-20210125001918-ca9a967f8778 // indirect
go.uber.org/atomic v1.6.0 // indirect
golang.org/x/crypto v0.0.0-20211117183948-ae814b36b871 // indirect
go.uber.org/atomic v1.9.0 // indirect
golang.org/x/crypto v0.7.0 // indirect
golang.org/x/exp v0.0.0-20220303212507-bbda1eaf7a17 // indirect
golang.org/x/net v0.0.0-20220607020251-c690dde0001d // indirect
golang.org/x/sys v0.0.0-20220520151302-bc2c85ada10a // indirect
golang.org/x/term v0.0.0-20210927222741-03fcf44c2211 // indirect
golang.org/x/text v0.3.7 // indirect
golang.org/x/net v0.8.0 // indirect
golang.org/x/sys v0.6.0 // indirect
golang.org/x/term v0.6.0 // indirect
golang.org/x/text v0.8.0 // indirect
golang.org/x/tools v0.7.0 // indirect
google.golang.org/genproto v0.0.0-20200526211855-cb27e3aa2013 // indirect
google.golang.org/grpc v1.29.1 // indirect
google.golang.org/protobuf v1.26.0 // indirect
google.golang.org/grpc v1.41.0 // indirect
google.golang.org/protobuf v1.28.0 // indirect
gopkg.in/warnings.v0 v0.1.2 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
mvdan.cc/xurls v1.1.0 // indirect
)

replace (
github.com/theupdateframework/go-tuf => github.com/werf/3p-go-tuf v0.0.0-20220916152539-6f59db8c7ce8
github.com/theupdateframework/go-tuf => github.com/werf/3p-go-tuf v0.0.0-20230315082915-5fc159235553
github.com/werf/trdl/client v0.0.0 => ../client
github.com/werf/trdl/server v0.0.0 => ../server
)

0 comments on commit 777331d

Please sign in to comment.