Skip to content

Commit 38a6759

Browse files
upgrade to use go 1.22
1 parent 6f9bc30 commit 38a6759

File tree

7 files changed

+455
-87
lines changed

7 files changed

+455
-87
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
/cf-targets-plugin
2+
/bin/**

build-all.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ mv cf-targets-plugin.exe bin/win64
4242
cat repo-index.yml |
4343
sed "s/osx-amd64-sha1/$OSX_AMD64_SHA1/" |
4444
sed "s/osx-arm64-sha1/$OSX_ARM64_SHA1/" |
45-
sed "s/win64-sha1/$WIN64_SHA1/" |
45+
# sed "s/win64-sha1/$WIN64_SHA1/" |
4646
sed "s/linux64-sha1/$LINUX64_SHA1/" |
4747
sed "s/_TAG_/$TAG/" |
4848
cat

cf_targets.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ import (
1010
realio "io/ioutil"
1111
realos "os"
1212

13-
"github.com/cloudfoundry/cli/cf/configuration"
14-
"github.com/cloudfoundry/cli/cf/configuration/confighelpers"
15-
"github.com/cloudfoundry/cli/cf/configuration/coreconfig"
16-
"github.com/cloudfoundry/cli/plugin"
13+
"code.cloudfoundry.org/cli/cf/configuration"
14+
"code.cloudfoundry.org/cli/cf/configuration/confighelpers"
15+
"code.cloudfoundry.org/cli/cf/configuration/coreconfig"
16+
"code.cloudfoundry.org/cli/plugin"
1717
)
1818

1919
type TargetsPlugin struct {

cf_targets_suite_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
package main
22

33
import (
4-
. "github.com/onsi/ginkgo"
4+
. "github.com/onsi/ginkgo/v2"
55
. "github.com/onsi/gomega"
66

77
"testing"
88
)
99

1010
func TestTargets(t *testing.T) {
1111
RegisterFailHandler(Fail)
12-
RunSpecs(t, "Targets Suite")
12+
RunSpecs(t, "CF Plugin Targets Suite")
1313
}

cf_targets_test.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@ package main
33
import (
44
realos "os"
55

6-
fakes "github.com/cloudfoundry/cli/plugin/pluginfakes"
7-
. "github.com/cloudfoundry/cli/cf/util/testhelpers/io"
8-
. "github.com/cloudfoundry/cli/cf/util/testhelpers/matchers"
9-
. "github.com/onsi/ginkgo"
6+
fakes "code.cloudfoundry.org/cli/plugin/pluginfakes"
7+
. "code.cloudfoundry.org/cli/cf/util/testhelpers/io"
8+
. "code.cloudfoundry.org/cli/cf/util/testhelpers/matchers"
9+
. "github.com/onsi/ginkgo/v2"
1010
. "github.com/onsi/gomega"
1111
)
1212

go.mod

Lines changed: 94 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1,59 +1,119 @@
1-
module github.com/guidowb/cf-targets-plugin
1+
module github.com/norman-abramovitz/cf-targets-plugin/v7
22

3-
go 1.19
3+
go 1.22
44

55
require (
6-
github.com/cloudfoundry/cli v6.46.0+incompatible
7-
github.com/onsi/ginkgo v1.16.4
8-
github.com/onsi/gomega v1.20.2
6+
code.cloudfoundry.org/cli v7.1.0+incompatible
7+
github.com/onsi/ginkgo/v2 v2.17.3
8+
github.com/onsi/gomega v1.33.1
99
)
1010

1111
require (
12+
cloud.google.com/go v0.113.0 // indirect
13+
cloud.google.com/go/auth v0.4.1 // indirect
14+
cloud.google.com/go/auth/oauth2adapt v0.2.2 // indirect
15+
cloud.google.com/go/compute/metadata v0.3.0 // indirect
16+
cloud.google.com/go/iam v1.1.8 // indirect
17+
cloud.google.com/go/storage v1.41.0 // indirect
1218
code.cloudfoundry.org/bytefmt v0.0.0-20190710193110-1eb035ffe2b6 // indirect
13-
code.cloudfoundry.org/cli v6.46.0+incompatible // indirect
19+
code.cloudfoundry.org/cli-plugin-repo v0.0.0-20240412012324-ec47981422ea // indirect
20+
code.cloudfoundry.org/clock v1.1.0 // indirect
21+
code.cloudfoundry.org/diego-ssh v0.0.0-20240408164108-f465a655f448 // indirect
22+
code.cloudfoundry.org/go-log-cache v1.0.0 // indirect
23+
code.cloudfoundry.org/go-loggregator v7.4.0+incompatible // indirect
1424
code.cloudfoundry.org/gofileutils v0.0.0-20170111115228-4d0c80011a0f // indirect
25+
code.cloudfoundry.org/jsonry v1.1.4 // indirect
26+
code.cloudfoundry.org/lager v2.0.0+incompatible // indirect
27+
code.cloudfoundry.org/lager/v3 v3.0.3 // indirect
28+
code.cloudfoundry.org/rfc5424 v0.0.0-20201103192249-000122071b78 // indirect
29+
code.cloudfoundry.org/tlsconfig v0.0.0-20240510172918-c1e19801fe80 // indirect
30+
code.cloudfoundry.org/workpool v0.0.0-20240408164905-b6c2fa5a80e4 // indirect
1531
code.cloudfoundry.org/ykk v0.0.0-20170424192843-e4df4ce2fd4d // indirect
32+
github.com/Azure/go-ansiterm v0.0.0-20230124172434-306776ec8161 // indirect
1633
github.com/SermoDigital/jose v0.0.0-20161205225155-2bd9b81ac51d // indirect
17-
github.com/apoydence/eachers v0.0.0-20181020210610-23942921fe77 // indirect
18-
github.com/blang/semver v3.1.0+incompatible // indirect
19-
github.com/bmatcuk/doublestar v1.1.5 // indirect
34+
github.com/aws/aws-sdk-go v1.53.1 // indirect
35+
github.com/blang/semver v3.5.1+incompatible // indirect
36+
github.com/bmatcuk/doublestar v1.3.4 // indirect
2037
github.com/bmizerany/pat v0.0.0-20160217103242-c068ca2f0aac // indirect
21-
github.com/charlievieth/fs v0.0.0-20170613215519-7dc373669fa1 // indirect
22-
github.com/cloudfoundry/bosh-cli v6.0.0+incompatible // indirect
23-
github.com/cloudfoundry/bosh-utils v0.0.0-20190813211102-4d0b7c5acdfd // indirect
24-
github.com/cloudfoundry/cli-plugin-repo v0.0.0-20190808155747-f1af6115b6ff // indirect
25-
github.com/cloudfoundry/noaa v0.0.0-20170131060151-9e087230f2fe // indirect
26-
github.com/cloudfoundry/sonde-go v0.0.0-20170118225207-78019103037a // indirect
38+
github.com/charlievieth/fs v0.0.3 // indirect
39+
github.com/cheggaaa/pb v1.0.29 // indirect
40+
github.com/cloudfoundry/bosh-agent v2.367.0+incompatible // indirect
41+
github.com/cloudfoundry/bosh-cli v6.4.1+incompatible // indirect
42+
github.com/cloudfoundry/bosh-davcli v0.0.342 // indirect
43+
github.com/cloudfoundry/bosh-gcscli v0.0.225 // indirect
44+
github.com/cloudfoundry/bosh-s3cli v0.0.294 // indirect
45+
github.com/cloudfoundry/bosh-utils v0.0.465 // indirect
46+
github.com/cloudfoundry/config-server v0.1.184 // indirect
47+
github.com/cloudfoundry/go-socks5 v0.0.0-20180221174514-54f73bdb8a8e // indirect
48+
github.com/cloudfoundry/socks5-proxy v0.2.117 // indirect
2749
github.com/cppforlife/go-patch v0.2.0 // indirect
50+
github.com/cppforlife/go-semi-semantic v0.0.0-20160921010311-576b6af77ae4 // indirect
2851
github.com/cyphar/filepath-securejoin v0.2.2 // indirect
29-
github.com/elazarl/goproxy v0.0.0-20220529153421-8ea89ba92021 // indirect
30-
github.com/elazarl/goproxy/ext v0.0.0-20220529153421-8ea89ba92021 // indirect
31-
github.com/fatih/color v0.0.0-20150823214434-76d423163af7 // indirect
32-
github.com/fsnotify/fsnotify v1.4.9 // indirect
33-
github.com/gogo/protobuf v0.0.0-20170125171659-fb8a359905af // indirect
34-
github.com/google/go-cmp v0.5.8 // indirect
52+
github.com/dustin/go-humanize v1.0.1 // indirect
53+
github.com/fatih/color v1.17.0 // indirect
54+
github.com/felixge/httpsnoop v1.0.4 // indirect
55+
github.com/fsnotify/fsnotify v1.7.0 // indirect
56+
github.com/go-logr/logr v1.4.1 // indirect
57+
github.com/go-logr/stdr v1.2.2 // indirect
58+
github.com/go-task/slim-sprig/v3 v3.0.0 // indirect
59+
github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect
60+
github.com/golang/protobuf v1.5.4 // indirect
61+
github.com/google/go-cmp v0.6.0 // indirect
3562
github.com/google/go-querystring v0.0.0-20170111101155-53e6ce116135 // indirect
36-
github.com/gorilla/websocket v0.0.0-20151216051058-3986be78bf85 // indirect
63+
github.com/google/pprof v0.0.0-20240509144519-723abb6459b7 // indirect
64+
github.com/google/s2a-go v0.1.7 // indirect
65+
github.com/google/uuid v1.6.0 // indirect
66+
github.com/googleapis/enterprise-certificate-proxy v0.3.2 // indirect
67+
github.com/googleapis/gax-go/v2 v2.12.4 // indirect
68+
github.com/grpc-ecosystem/grpc-gateway v1.16.0 // indirect
69+
github.com/hashicorp/errwrap v1.1.0 // indirect
70+
github.com/hashicorp/go-multierror v1.1.1 // indirect
71+
github.com/jessevdk/go-flags v1.5.0 // indirect
72+
github.com/jmespath/go-jmespath v0.4.0 // indirect
73+
github.com/jpillora/backoff v1.0.0 // indirect
3774
github.com/konsorten/go-windows-terminal-sequences v1.0.1 // indirect
3875
github.com/kr/pty v1.1.8 // indirect
3976
github.com/lunixbochs/vtclean v1.0.0 // indirect
40-
github.com/mattn/go-colorable v0.0.7 // indirect
41-
github.com/mattn/go-isatty v0.0.0-20150814002629-7fcbc72f853b // indirect
42-
github.com/mattn/go-runewidth v0.0.4 // indirect
77+
github.com/mattn/go-colorable v0.1.13 // indirect
78+
github.com/mattn/go-isatty v0.0.20 // indirect
79+
github.com/mattn/go-runewidth v0.0.15 // indirect
80+
github.com/moby/moby v20.10.27+incompatible // indirect
81+
github.com/moby/term v0.5.0 // indirect
4382
github.com/nu7hatch/gouuid v0.0.0-20131221200532-179d4d0c4d8d // indirect
44-
github.com/nxadm/tail v1.4.8 // indirect
45-
github.com/pkg/errors v0.8.1 // indirect
46-
github.com/shiena/ansicolor v0.0.0-20151119151921-a422bbe96644 // indirect
83+
github.com/nxadm/tail v1.4.11 // indirect
84+
github.com/onsi/ginkgo v1.16.5 // indirect
85+
github.com/pivotal-cf/paraphernalia v0.0.0-20180203224945-a64ae2051c20 // indirect
86+
github.com/pkg/errors v0.9.1 // indirect
87+
github.com/rivo/uniseg v0.4.7 // indirect
88+
github.com/sabhiram/go-gitignore v0.0.0-20210923224102-525f6e181f06 // indirect
89+
github.com/shiena/ansicolor v0.0.0-20230509054315-a9deabde6e02 // indirect
4790
github.com/sirupsen/logrus v1.4.2 // indirect
4891
github.com/tedsuo/rata v1.0.0 // indirect
49-
github.com/vito/go-interact v1.0.0 // indirect
50-
golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9 // indirect
51-
golang.org/x/net v0.0.0-20220722155237-a158d28d115b // indirect
52-
golang.org/x/sys v0.0.0-20220722155257-8c9f86f7a55f // indirect
53-
golang.org/x/text v0.3.7 // indirect
92+
github.com/vito/go-interact v1.0.1 // indirect
93+
go.opencensus.io v0.24.0 // indirect
94+
go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.51.0 // indirect
95+
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.51.0 // indirect
96+
go.opentelemetry.io/otel v1.26.0 // indirect
97+
go.opentelemetry.io/otel/metric v1.26.0 // indirect
98+
go.opentelemetry.io/otel/trace v1.26.0 // indirect
99+
golang.org/x/crypto v0.23.0 // indirect
100+
golang.org/x/net v0.25.0 // indirect
101+
golang.org/x/oauth2 v0.20.0 // indirect
102+
golang.org/x/sync v0.7.0 // indirect
103+
golang.org/x/sys v0.20.0 // indirect
104+
golang.org/x/term v0.20.0 // indirect
105+
golang.org/x/text v0.15.0 // indirect
106+
golang.org/x/time v0.5.0 // indirect
107+
golang.org/x/tools v0.21.0 // indirect
108+
google.golang.org/api v0.180.0 // indirect
109+
google.golang.org/genproto v0.0.0-20240513163218-0867130af1f8 // indirect
110+
google.golang.org/genproto/googleapis/api v0.0.0-20240513163218-0867130af1f8 // indirect
111+
google.golang.org/genproto/googleapis/rpc v0.0.0-20240513163218-0867130af1f8 // indirect
112+
google.golang.org/grpc v1.63.2 // indirect
113+
google.golang.org/protobuf v1.34.1 // indirect
54114
gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c // indirect
55115
gopkg.in/cheggaaa/pb.v1 v1.0.28 // indirect
56116
gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7 // indirect
57-
gopkg.in/yaml.v2 v2.3.0 // indirect
117+
gopkg.in/yaml.v2 v2.4.0 // indirect
58118
gopkg.in/yaml.v3 v3.0.1 // indirect
59119
)

0 commit comments

Comments
 (0)