Skip to content

Commit

Permalink
remove unused dependencies (#171)
Browse files Browse the repository at this point in the history
Signed-off-by: haoqing0110 <[email protected]>
  • Loading branch information
haoqing0110 authored Sep 20, 2024
1 parent 2d820ef commit 102f617
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 17 deletions.
11 changes: 2 additions & 9 deletions build/install-dependencies.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,13 @@
# Copyright (c) 2020 Red Hat, Inc.
# Copyright Contributors to the Open Cluster Management project

export GO111MODULE=off

# Go tools
_OS=$(go env GOOS)
_ARCH=$(go env GOARCH)
KubeBuilderVersion="2.3.0"

if ! which patter > /dev/null; then echo "Installing patter ..."; go get -u github.com/apg/patter; fi
if ! which gocovmerge > /dev/null; then echo "Installing gocovmerge..."; go get -u github.com/wadey/gocovmerge; fi
if ! which go-bindata > /dev/null; then
echo "Installing go-bindata..."
cd $(mktemp -d) && GOSUMDB=off go get -u github.com/go-bindata/go-bindata/...
fi
go-bindata --version
if ! which patter > /dev/null; then echo "Installing patter ..."; go install github.com/apg/patter@latest; fi
if ! which gocovmerge > /dev/null; then echo "Installing gocovmerge..."; go install -mod=mod github.com/wadey/gocovmerge; fi

# Build tools
if ! which kubebuilder > /dev/null; then
Expand Down
10 changes: 2 additions & 8 deletions build/run-functional-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,17 +27,11 @@ if ! which kind > /dev/null; then
fi
if ! which ginkgo > /dev/null; then
echo "Installing ginkgo ..."
pushd $(mktemp -d)
go install github.com/onsi/ginkgo/v2/[email protected]
echo "installing gomega ..."
GO111MODULE=off go get github.com/onsi/gomega/...
popd
go install github.com/onsi/ginkgo/v2/[email protected]
fi
if ! which gocovmerge > /dev/null; then
echo "Installing gocovmerge..."
pushd $(mktemp -d)
go install github.com/wadey/gocovmerge@latest
popd
go install -mod=mod github.com/wadey/gocovmerge
fi
if ! which helm > /dev/null; then
echo "Installing helm..."
Expand Down
1 change: 1 addition & 0 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ require (
github.com/shopspring/decimal v1.2.0 // indirect
github.com/spf13/cast v1.4.1 // indirect
github.com/spf13/pflag v1.0.5 // indirect
github.com/wadey/gocovmerge v0.0.0-20160331181800-b5bfa59ec0ad // indirect
go.uber.org/atomic v1.9.0 // indirect
go.uber.org/multierr v1.6.0 // indirect
go.uber.org/zap v1.19.1 // indirect
Expand Down
2 changes: 2 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -578,6 +578,8 @@ github.com/stretchr/testify v1.8.1/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o
github.com/subosito/gotenv v1.2.0/go.mod h1:N0PQaV/YGNqwC0u51sEeR/aUtSLEXKX9iv69rRypqCw=
github.com/tmc/grpc-websocket-proxy v0.0.0-20190109142713-0ad062ec5ee5/go.mod h1:ncp9v5uamzpCO7NfCPTXjqaC+bZgJeR0sMTm6dMHP7U=
github.com/tmc/grpc-websocket-proxy v0.0.0-20201229170055-e5319fda7802/go.mod h1:ncp9v5uamzpCO7NfCPTXjqaC+bZgJeR0sMTm6dMHP7U=
github.com/wadey/gocovmerge v0.0.0-20160331181800-b5bfa59ec0ad h1:W0LEBv82YCGEtcmPA3uNZBI33/qF//HAAs3MawDjRa0=
github.com/wadey/gocovmerge v0.0.0-20160331181800-b5bfa59ec0ad/go.mod h1:Hy8o65+MXnS6EwGElrSRjUzQDLXreJlzYLlWiHtt8hM=
github.com/xiang90/probing v0.0.0-20190116061207-43a291ad63a2/go.mod h1:UETIi67q53MR2AWcXfiuqkDkRtnGDLqkBTpCHuJHxtU=
github.com/yuin/goldmark v1.1.25/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74=
github.com/yuin/goldmark v1.1.27/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74=
Expand Down
2 changes: 2 additions & 0 deletions vendor/modules.txt
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,8 @@ github.com/stolostron/library-go/pkg/apis/meta/v1/deployment
github.com/stolostron/library-go/pkg/client
github.com/stolostron/library-go/pkg/config
github.com/stolostron/library-go/pkg/templateprocessor
# github.com/wadey/gocovmerge v0.0.0-20160331181800-b5bfa59ec0ad
## explicit
# go.uber.org/atomic v1.9.0
## explicit; go 1.13
go.uber.org/atomic
Expand Down

0 comments on commit 102f617

Please sign in to comment.