Skip to content

Commit f126d34

Browse files
🌱 Update Golang Dependencies group to v2.6.2 [SECURITY]
| datasource | package | from | to | | ---------- | -------------------- | ------ | ------ | | go | oras.land/oras-go/v2 | v2.5.0 | v2.6.2 |
1 parent 66dc97a commit f126d34

46 files changed

Lines changed: 945 additions & 317 deletions

Some content is hidden

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

go.mod

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
module github.com/SovereignCloudStack/csctl
22

3-
go 1.22.0
4-
5-
toolchain go1.22.12
3+
go 1.25.0
64

75
require (
86
github.com/SovereignCloudStack/cluster-stack-operator v0.1.0-alpha.9
@@ -15,7 +13,7 @@ require (
1513
gopkg.in/src-d/go-git.v4 v4.13.1
1614
gopkg.in/yaml.v3 v3.0.1
1715
helm.sh/helm/v3 v3.16.4
18-
oras.land/oras-go/v2 v2.5.0
16+
oras.land/oras-go/v2 v2.6.2
1917
)
2018

2119
require (
@@ -134,7 +132,7 @@ require (
134132
go.starlark.net v0.0.0-20230525235612-a134d8f9ddca // indirect
135133
golang.org/x/crypto v0.31.0 // indirect
136134
golang.org/x/net v0.33.0 // indirect
137-
golang.org/x/sync v0.10.0 // indirect
135+
golang.org/x/sync v0.22.0 // indirect
138136
golang.org/x/sys v0.28.0 // indirect
139137
golang.org/x/term v0.27.0 // indirect
140138
golang.org/x/text v0.21.0 // indirect

go.sum

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -468,8 +468,8 @@ golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJ
468468
golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
469469
golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
470470
golang.org/x/sync v0.0.0-20201020160332-67f06af15bc9/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
471-
golang.org/x/sync v0.10.0 h1:3NQrjDixjgGwUOCaF8w2+VYHv0Ve/vGYSbdkTa98gmQ=
472-
golang.org/x/sync v0.10.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk=
471+
golang.org/x/sync v0.22.0 h1:SZjpbeLmrCk4xhRSZFNZW5gFUeCeFgjekvI/+gfScek=
472+
golang.org/x/sync v0.22.0/go.mod h1:9xrNwdLfx4jkKbNva9FpL6vEN7evnE43NNNJQ2LF3+0=
473473
golang.org/x/sys v0.0.0-20180830151530-49385e6e1522/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
474474
golang.org/x/sys v0.0.0-20180905080454-ebe1bf3edb33/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
475475
golang.org/x/sys v0.0.0-20181116152217-5ac8a444bdc5/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
@@ -593,8 +593,8 @@ k8s.io/utils v0.0.0-20240711033017-18e509b52bc8 h1:pUdcCO1Lk/tbT5ztQWOBi5HBgbBP1
593593
k8s.io/utils v0.0.0-20240711033017-18e509b52bc8/go.mod h1:OLgZIPagt7ERELqWJFomSt595RzquPNLL48iOWgYOg0=
594594
oras.land/oras-go v1.2.5 h1:XpYuAwAb0DfQsunIyMfeET92emK8km3W4yEzZvUbsTo=
595595
oras.land/oras-go v1.2.5/go.mod h1:PuAwRShRZCsZb7g8Ar3jKKQR/2A/qN+pkYxIOd/FAoo=
596-
oras.land/oras-go/v2 v2.5.0 h1:o8Me9kLY74Vp5uw07QXPiitjsw7qNXi8Twd+19Zf02c=
597-
oras.land/oras-go/v2 v2.5.0/go.mod h1:z4eisnLP530vwIOUOJeBIj0aGI0L1C3d53atvCBqZHg=
596+
oras.land/oras-go/v2 v2.6.2 h1:N04RXngAp1LJKTG6ifz3xHPipasEkWr+hFmInja5YKo=
597+
oras.land/oras-go/v2 v2.6.2/go.mod h1:PlTtg4JTDJkDe8yVHpM2wz7/YDc00GVas+i4jAW2TZ4=
598598
sigs.k8s.io/json v0.0.0-20221116044647-bc3834ca7abd h1:EDPBXCAspyGV4jQlpZSudPeMmr1bNJefnuqLsRAsHZo=
599599
sigs.k8s.io/json v0.0.0-20221116044647-bc3834ca7abd/go.mod h1:B8JuhiUyNFVKdsE8h686QcCxMaH6HrOAZj4vswFpcB0=
600600
sigs.k8s.io/kustomize/api v0.17.2 h1:E7/Fjk7V5fboiuijoZHgs4aHuexi5Y2loXlVOAVAG5g=

vendor/golang.org/x/sync/errgroup/errgroup.go

Lines changed: 25 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/golang.org/x/sync/errgroup/go120.go

Lines changed: 0 additions & 13 deletions
This file was deleted.

vendor/golang.org/x/sync/errgroup/pre_go120.go

Lines changed: 0 additions & 14 deletions
This file was deleted.

vendor/golang.org/x/sync/semaphore/semaphore.go

Lines changed: 18 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/modules.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -509,8 +509,8 @@ golang.org/x/net/websocket
509509
## explicit; go 1.18
510510
golang.org/x/oauth2
511511
golang.org/x/oauth2/internal
512-
# golang.org/x/sync v0.10.0
513-
## explicit; go 1.18
512+
# golang.org/x/sync v0.22.0
513+
## explicit; go 1.25.0
514514
golang.org/x/sync/errgroup
515515
golang.org/x/sync/semaphore
516516
# golang.org/x/sys v0.28.0
@@ -1049,8 +1049,8 @@ oras.land/oras-go/pkg/registry/remote/auth
10491049
oras.land/oras-go/pkg/registry/remote/internal/errutil
10501050
oras.land/oras-go/pkg/registry/remote/internal/syncutil
10511051
oras.land/oras-go/pkg/target
1052-
# oras.land/oras-go/v2 v2.5.0
1053-
## explicit; go 1.21
1052+
# oras.land/oras-go/v2 v2.6.2
1053+
## explicit; go 1.25.0
10541054
oras.land/oras-go/v2
10551055
oras.land/oras-go/v2/content
10561056
oras.land/oras-go/v2/content/file
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# Copyright The ORAS Authors.
2+
# Licensed under the Apache License, Version 2.0 (the "License");
3+
# you may not use this file except in compliance with the License.
4+
# You may obtain a copy of the License at
5+
#
6+
# http://www.apache.org/licenses/LICENSE-2.0
7+
#
8+
# Unless required by applicable law or agreed to in writing, software
9+
# distributed under the License is distributed on an "AS IS" BASIS,
10+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11+
# See the License for the specific language governing permissions and
12+
# limitations under the License.
13+
14+
version: 2
15+
16+
# oras-go is a library — no binary builds or archives needed.
17+
builds:
18+
- skip: true
19+
20+
checksum:
21+
disable: true
22+
23+
release:
24+
# Tags containing -alpha, -beta, or -rc are automatically marked pre-release.
25+
prerelease: auto
26+
draft: false
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
# Derived from OWNERS.md
2-
* @sajayantony @shizhMSFT @stevelasker @Wwwsylvia
2+
* @sabre1041 @shizhMSFT @TerryHowe @Wwwsylvia

vendor/oras.land/oras-go/v2/MIGRATION_GUIDE.md

Lines changed: 26 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,19 +7,21 @@ In version `v2`, ORAS Go library has been completely refreshed with:
77
- Higher test coverage
88
- Better documentation
99

10-
**Besides, ORAS Go `v2` is now a registry client.**
10+
**Additionally, ORAS Go `v2` is now a registry client.**
1111

1212
## Major Changes in `v2`
1313

14-
- Moves `content.FileStore` to [file.Store](https://pkg.go.dev/oras.land/oras-go/v2/content/file#Store)
15-
- Moves `content.OCIStore` to [oci.Store](https://pkg.go.dev/oras.land/oras-go/v2/content/oci#Store)
16-
- Moves `content.MemoryStore` to [memory.Store](https://pkg.go.dev/oras.land/oras-go/v2/content/memory#Store)
17-
- Provides [SDK](https://pkg.go.dev/oras.land/oras-go/v2/registry/remote) to interact with OCI-compliant and Docker-compliant registries
18-
- Supports [Copy](https://pkg.go.dev/oras.land/oras-go/v2#Copy) with more flexible options
19-
- Supports [Extended Copy](https://pkg.go.dev/oras.land/oras-go/v2#ExtendedCopy) with options *(experimental)*
20-
- No longer supports `docker.Login` and `docker.Logout` (removes the dependency on `docker`); instead, provides authentication through [auth.Client](https://pkg.go.dev/oras.land/oras-go/v2/registry/remote/auth#Client)
21-
22-
Documentation and examples are available at [pkg.go.dev](https://pkg.go.dev/oras.land/oras-go/v2).
14+
- Content store
15+
- [`content.File`](https://pkg.go.dev/oras.land/oras-go/pkg/content#File) is now [`file.Store`](https://pkg.go.dev/oras.land/oras-go/v2/content/file#Store)
16+
- [`content.OCI`](https://pkg.go.dev/oras.land/oras-go/pkg/content#OCI) is now [`oci.Store`](https://pkg.go.dev/oras.land/oras-go/v2/content/oci#Store)
17+
- [`content.Memory`](https://pkg.go.dev/oras.land/oras-go/pkg/content#Memory) is now [`memory.Store`](https://pkg.go.dev/oras.land/oras-go/v2/content/memory#Store)
18+
- Registry interaction
19+
- Introduces an [SDK](https://pkg.go.dev/oras.land/oras-go/v2/registry/remote) to interact with OCI-compliant and Docker-compliant registries
20+
- Authentication
21+
- Implements authentication through [`auth.Client`](https://pkg.go.dev/oras.land/oras-go/v2/registry/remote/auth#Client) and supports credential management via [`credentials`](https://pkg.go.dev/oras.land/oras-go/v2/registry/remote/credentials)
22+
- Copy operations
23+
- Enhances artifact [copying](https://pkg.go.dev/oras.land/oras-go/v2#Copy) capabilities between various [`Target`](https://pkg.go.dev/oras.land/oras-go/v2#Target) with flexible options
24+
- Enables [extended-copying](https://pkg.go.dev/oras.land/oras-go/v2#ExtendedCopy) of artifacts along with their predecessors (e.g., referrers)
2325

2426
## Migrating from `v1` to `v2`
2527

@@ -43,3 +45,17 @@ Documentation and examples are available at [pkg.go.dev](https://pkg.go.dev/oras
4345

4446
Since breaking changes are introduced in `v2`, code refactoring is required for migrating from `v1` to `v2`.
4547
The migration can be done in an iterative fashion, as `v1` and `v2` can be imported and used at the same time.
48+
49+
For comprehensive documentation and examples, please refer to [pkg.go.dev](https://pkg.go.dev/oras.land/oras-go/v2).
50+
51+
## FAQs
52+
53+
### Is there a 1:1 mapping of APIs between `v1` and `v2`?
54+
55+
No, `v2` does not have a direct 1:1 mapping of APIs with `v1`, as the structure of the APIs has been significantly redesigned. Instead of looking for a direct replacement, see this as a chance to upgrade your application with `v2`'s new features.
56+
57+
You can explore the [end-to-end examples](https://pkg.go.dev/oras.land/oras-go/v2#pkg-overview) that demonstrate the usage of v2 in practical scenarios.
58+
59+
## Community Support
60+
61+
If you encounter challenges during migration, seek assistance from the community by [submitting GitHub issues](https://github.com/oras-project/oras-go/issues/new) or asking in the [#oras](https://cloud-native.slack.com/archives/CJ1KHJM5Z) Slack channel.

0 commit comments

Comments
 (0)