Skip to content

Commit 83d05c3

Browse files
enable go modules
Signed-off-by: stoneshi-yunify <[email protected]>
1 parent 14aefe1 commit 83d05c3

File tree

9,296 files changed

+271
-3141131
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

9,296 files changed

+271
-3141131
lines changed

go.mod

+68
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
module github.com/kubesphere/s2irun
2+
3+
go 1.23.3
4+
5+
require (
6+
github.com/distribution/reference v0.6.0
7+
github.com/docker/docker v17.10.0-ce+incompatible
8+
github.com/docker/go-connections v0.5.0
9+
github.com/golang/glog v1.2.4
10+
github.com/opencontainers/go-digest v1.0.0
11+
golang.org/x/net v0.38.0
12+
k8s.io/apimachinery v0.32.3
13+
k8s.io/client-go v0.32.3
14+
sigs.k8s.io/controller-runtime v0.20.4
15+
)
16+
17+
require (
18+
github.com/Azure/go-ansiterm v0.0.0-20250102033503-faa5f7b0171c // indirect
19+
github.com/Microsoft/go-winio v0.6.2 // indirect
20+
github.com/Nvveen/Gotty v0.0.0-20120604004816-cd527374f1e5 // indirect
21+
github.com/containerd/continuity v0.4.5 // indirect
22+
github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc // indirect
23+
github.com/docker/distribution v2.7.1+incompatible // indirect
24+
github.com/docker/go-units v0.5.0 // indirect
25+
github.com/emicklei/go-restful/v3 v3.11.0 // indirect
26+
github.com/fxamacker/cbor/v2 v2.7.0 // indirect
27+
github.com/go-logr/logr v1.4.2 // indirect
28+
github.com/go-openapi/jsonpointer v0.21.0 // indirect
29+
github.com/go-openapi/jsonreference v0.20.2 // indirect
30+
github.com/go-openapi/swag v0.23.0 // indirect
31+
github.com/gogo/protobuf v1.3.2 // indirect
32+
github.com/golang/protobuf v1.5.4 // indirect
33+
github.com/google/gnostic-models v0.6.8 // indirect
34+
github.com/google/go-cmp v0.6.0 // indirect
35+
github.com/google/gofuzz v1.2.0 // indirect
36+
github.com/google/uuid v1.6.0 // indirect
37+
github.com/josharian/intern v1.0.0 // indirect
38+
github.com/json-iterator/go v1.1.12 // indirect
39+
github.com/mailru/easyjson v0.7.7 // indirect
40+
github.com/moby/sys/user v0.3.0 // indirect
41+
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
42+
github.com/modern-go/reflect2 v1.0.2 // indirect
43+
github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 // indirect
44+
github.com/opencontainers/image-spec v1.1.1 // indirect
45+
github.com/opencontainers/runc v1.2.6 // indirect
46+
github.com/opencontainers/selinux v1.12.0 // indirect
47+
github.com/pkg/errors v0.9.1 // indirect
48+
github.com/sirupsen/logrus v1.9.3 // indirect
49+
github.com/spf13/pflag v1.0.5 // indirect
50+
github.com/stretchr/testify v1.10.0 // indirect
51+
github.com/x448/float16 v0.8.4 // indirect
52+
golang.org/x/oauth2 v0.23.0 // indirect
53+
golang.org/x/sys v0.31.0 // indirect
54+
golang.org/x/term v0.30.0 // indirect
55+
golang.org/x/text v0.23.0 // indirect
56+
golang.org/x/time v0.7.0 // indirect
57+
google.golang.org/protobuf v1.35.1 // indirect
58+
gopkg.in/evanphx/json-patch.v4 v4.12.0 // indirect
59+
gopkg.in/inf.v0 v0.9.1 // indirect
60+
gopkg.in/yaml.v3 v3.0.1 // indirect
61+
k8s.io/api v0.32.3 // indirect
62+
k8s.io/klog/v2 v2.130.1 // indirect
63+
k8s.io/kube-openapi v0.0.0-20241105132330-32ad38e42d3f // indirect
64+
k8s.io/utils v0.0.0-20241104100929-3ea5e8cea738 // indirect
65+
sigs.k8s.io/json v0.0.0-20241010143419-9aa6b5e7a4b3 // indirect
66+
sigs.k8s.io/structured-merge-diff/v4 v4.4.2 // indirect
67+
sigs.k8s.io/yaml v1.4.0 // indirect
68+
)

go.sum

+197
Large diffs are not rendered by default.

pkg/api/types.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import (
99
"strings"
1010
"time"
1111

12-
"github.com/docker/distribution/reference"
12+
"github.com/distribution/reference"
1313
"github.com/kubesphere/s2irun/pkg/scm/git"
1414
utilglog "github.com/kubesphere/s2irun/pkg/utils/glog"
1515
"github.com/kubesphere/s2irun/pkg/utils/user"

pkg/api/validation/validation.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import (
44
"fmt"
55
"strings"
66

7-
"github.com/docker/distribution/reference"
7+
"github.com/distribution/reference"
88

99
"github.com/kubesphere/s2irun/pkg/api"
1010
)

pkg/docker/util.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import (
1313
"regexp"
1414
"strings"
1515

16-
"github.com/docker/distribution/reference"
16+
"github.com/distribution/reference"
1717
cliconfig "github.com/docker/docker/cli/config"
1818
"github.com/docker/docker/client"
1919

pkg/outputresult/output.go

+3-2
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import (
66
"time"
77

88
"github.com/kubesphere/s2irun/pkg/api"
9+
"golang.org/x/net/context"
910
"k8s.io/apimachinery/pkg/apis/meta/v1"
1011
"k8s.io/apimachinery/pkg/util/wait"
1112
"k8s.io/client-go/kubernetes"
@@ -62,7 +63,7 @@ func AddBuildResultToAnnotation(buildResult *api.Result) error {
6263
k8sClient := kubernetes.NewForConfigOrDie(cfg)
6364

6465
retryErr := retry.RetryOnConflict(Retry, func() error {
65-
pod, err := k8sClient.CoreV1().Pods(namespace).Get(podName, v1.GetOptions{})
66+
pod, err := k8sClient.CoreV1().Pods(namespace).Get(context.Background(), podName, v1.GetOptions{})
6667
if err != nil {
6768
glog.Errorf("failed to get pod %s in namespace %s, reason: %s", podName, namespace, err)
6869
return err
@@ -76,7 +77,7 @@ func AddBuildResultToAnnotation(buildResult *api.Result) error {
7677
api.AnnotationBuildSourceKey: string(source),
7778
}
7879

79-
_, err = k8sClient.CoreV1().Pods(namespace).Update(pod)
80+
_, err = k8sClient.CoreV1().Pods(namespace).Update(context.Background(), pod, v1.UpdateOptions{})
8081
return err
8182
})
8283

vendor/github.com/Azure/go-ansiterm/LICENSE

-21
This file was deleted.

vendor/github.com/Azure/go-ansiterm/README.md

-12
This file was deleted.

vendor/github.com/Azure/go-ansiterm/constants.go

-188
This file was deleted.

vendor/github.com/Azure/go-ansiterm/context.go

-7
This file was deleted.

0 commit comments

Comments
 (0)