Skip to content

Commit 618da72

Browse files
authored
Merge pull request #3 from sofatutor/sync-forks
Sync forks
2 parents 9e5ea90 + 92493fb commit 618da72

File tree

10 files changed

+446
-258
lines changed

10 files changed

+446
-258
lines changed

.gitattributes

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
* text=auto eol=lf
2+
*.go eol=lf
3+
*.md eol=lf
4+
*.yml eol=lf
5+
*.yaml eol=lf

.github/workflows/goreleaser.yml

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,18 +14,22 @@ jobs:
1414
flags: ""
1515
steps:
1616
- name: Checkout
17-
uses: actions/checkout@v4
17+
uses: actions/checkout@v5
18+
with:
19+
# goreleaser needs history to find previous tags
20+
fetch-depth: 0
1821

1922
- name: Set up Go
20-
uses: actions/setup-go@v4
23+
uses: actions/setup-go@v5
2124
with:
22-
go-version: 1.21
25+
go-version-file: go.mod
2326

2427
- name: Test
2528
run: go test ./...
2629

2730
- name: Dependencies
2831
run: |
32+
sudo apt update
2933
sudo apt install -qy binutils-aarch64-linux-gnu gcc-aarch64-linux-gnu g++-aarch64-linux-gnu
3034
3135
mkdir /tmp/zlib
@@ -42,9 +46,9 @@ jobs:
4246
run: echo "flags=--snapshot" >> $GITHUB_ENV
4347

4448
- name: Run GoReleaser
45-
uses: goreleaser/goreleaser-action@v5
49+
uses: goreleaser/goreleaser-action@v6
4650
with:
47-
version: latest
51+
version: '~> v2'
4852
args: release --clean ${{ env.flags }}
4953
env:
5054
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.goreleaser.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
version: 2
12
project_name: standalone-soci-indexer
23
before:
34
hooks:
@@ -40,7 +41,7 @@ archives:
4041
checksum:
4142
name_template: 'checksums.txt'
4243
snapshot:
43-
name_template: "{{ incpatch .Version }}-next"
44+
version_template: "{{ incpatch .Version }}-next"
4445
changelog:
4546
use: github
4647
sort: asc

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ Use it to pull an image, index it, and push a SOCI snapshot with:
2323
./standalone-soci-indexer 1234567890.dkr.ecr.us-east-1.amazonaws.com/some-repo:latest
2424
```
2525

26-
The indexer will automatically use the provided environment AWS credentials to login to ECR. If you need to use a different authentication method, you can use the `--auth` flag to specify a different authentication token.:
26+
The indexer will automatically use the provided environment AWS credentials to login to ECR. If you need to use a different authentication method, you can use the `--auth` flag to specify a different authentication token:
2727

2828
```bash
2929
./standalone-soci-indexer docker.io/some-repo:latest --auth user:password

go.mod

Lines changed: 69 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -1,70 +1,91 @@
11
module github.com/sofatutor/standalone-soci-indexer
22

3-
go 1.21
4-
5-
toolchain go1.22.2
3+
go 1.25
64

75
require (
8-
github.com/aws/aws-sdk-go v1.51.26
9-
github.com/awslabs/soci-snapshotter v0.6.0
10-
github.com/containerd/containerd v1.7.15
11-
github.com/opencontainers/image-spec v1.1.0
12-
github.com/rs/zerolog v1.32.0
13-
github.com/spf13/cobra v1.8.0
14-
oras.land/oras-go/v2 v2.5.0
6+
github.com/aws/aws-sdk-go-v2 v1.39.6
7+
github.com/aws/aws-sdk-go-v2/config v1.31.17
8+
github.com/aws/aws-sdk-go-v2/service/ecr v1.51.2
9+
github.com/awslabs/soci-snapshotter v0.11.1
10+
github.com/containerd/containerd v1.7.29
11+
github.com/novln/docker-parser v1.0.0
12+
github.com/opencontainers/image-spec v1.1.1
13+
github.com/rs/zerolog v1.34.0
14+
github.com/spf13/cobra v1.10.1
15+
oras.land/oras-go/v2 v2.6.0
1516
)
1617

1718
require (
18-
github.com/AdaLogics/go-fuzz-headers v0.0.0-20230811130428-ced1acdcaa24 // indirect
19-
github.com/AdamKorcz/go-118-fuzz-build v0.0.0-20231105174938-2b5cbb29f3e2 // indirect
19+
cyphar.com/go-pathrs v0.2.1 // indirect
20+
github.com/AdaLogics/go-fuzz-headers v0.0.0-20240806141605-e8a1dd7889d6 // indirect
21+
github.com/AdamKorcz/go-118-fuzz-build v0.0.0-20250520111509-a70c2aa677fa // indirect
2022
github.com/Microsoft/go-winio v0.6.2 // indirect
21-
github.com/Microsoft/hcsshim v0.12.3 // indirect
22-
github.com/containerd/cgroups/v3 v3.0.3 // indirect
23-
github.com/containerd/continuity v0.4.3 // indirect
24-
github.com/containerd/errdefs v0.1.0 // indirect
23+
github.com/Microsoft/hcsshim v0.13.0 // indirect
24+
github.com/aws/aws-sdk-go-v2/credentials v1.18.21 // indirect
25+
github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.18.13 // indirect
26+
github.com/aws/aws-sdk-go-v2/internal/configsources v1.4.13 // indirect
27+
github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.7.13 // indirect
28+
github.com/aws/aws-sdk-go-v2/internal/ini v1.8.4 // indirect
29+
github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.13.3 // indirect
30+
github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.13.13 // indirect
31+
github.com/aws/aws-sdk-go-v2/service/sso v1.30.1 // indirect
32+
github.com/aws/aws-sdk-go-v2/service/ssooidc v1.35.5 // indirect
33+
github.com/aws/aws-sdk-go-v2/service/sts v1.39.1 // indirect
34+
github.com/aws/smithy-go v1.23.2 // indirect
35+
github.com/containerd/cgroups/v3 v3.1.1 // indirect
36+
github.com/containerd/containerd/api v1.10.0 // indirect
37+
github.com/containerd/continuity v0.4.5 // indirect
38+
github.com/containerd/errdefs v1.0.0 // indirect
39+
github.com/containerd/errdefs/pkg v0.3.0 // indirect
2540
github.com/containerd/fifo v1.1.0 // indirect
2641
github.com/containerd/log v0.1.0 // indirect
27-
github.com/containerd/ttrpc v1.2.3 // indirect
28-
github.com/containerd/typeurl/v2 v2.1.1 // indirect
29-
github.com/docker/go-events v0.0.0-20190806004212-e31b211e4f1c // indirect
42+
github.com/containerd/platforms v0.2.1 // indirect
43+
github.com/containerd/ttrpc v1.2.7 // indirect
44+
github.com/containerd/typeurl/v2 v2.2.3 // indirect
45+
github.com/cyphar/filepath-securejoin v0.6.0 // indirect
46+
github.com/distribution/reference v0.6.0 // indirect
47+
github.com/docker/go-events v0.0.0-20250808211157-605354379745 // indirect
3048
github.com/felixge/httpsnoop v1.0.4 // indirect
31-
github.com/go-logr/logr v1.4.1 // indirect
49+
github.com/go-logr/logr v1.4.3 // indirect
3250
github.com/go-logr/stdr v1.2.2 // indirect
3351
github.com/gogo/protobuf v1.3.2 // indirect
34-
github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect
35-
github.com/google/flatbuffers v24.3.25+incompatible // indirect
36-
github.com/google/go-cmp v0.6.0 // indirect
52+
github.com/golang/groupcache v0.0.0-20241129210726-2c02b8208cf8 // indirect
53+
github.com/google/flatbuffers v25.9.23+incompatible // indirect
54+
github.com/google/go-cmp v0.7.0 // indirect
3755
github.com/google/uuid v1.6.0 // indirect
3856
github.com/inconshreveable/mousetrap v1.1.0 // indirect
39-
github.com/jmespath/go-jmespath v0.4.0 // indirect
40-
github.com/klauspost/compress v1.17.8 // indirect
41-
github.com/mattn/go-colorable v0.1.13 // indirect
57+
github.com/klauspost/compress v1.18.1 // indirect
58+
github.com/mattn/go-colorable v0.1.14 // indirect
4259
github.com/mattn/go-isatty v0.0.20 // indirect
4360
github.com/moby/locker v1.0.1 // indirect
44-
github.com/moby/sys/mountinfo v0.7.1 // indirect
45-
github.com/moby/sys/sequential v0.5.0 // indirect
46-
github.com/moby/sys/signal v0.7.0 // indirect
47-
github.com/moby/sys/user v0.1.0 // indirect
61+
github.com/moby/sys/mountinfo v0.7.2 // indirect
62+
github.com/moby/sys/sequential v0.6.0 // indirect
63+
github.com/moby/sys/signal v0.7.1 // indirect
64+
github.com/moby/sys/user v0.4.0 // indirect
65+
github.com/moby/sys/userns v0.1.0 // indirect
4866
github.com/opencontainers/go-digest v1.0.0 // indirect
49-
github.com/opencontainers/runtime-spec v1.2.0 // indirect
50-
github.com/opencontainers/selinux v1.11.0 // indirect
51-
github.com/pelletier/go-toml v1.9.5 // indirect
67+
github.com/opencontainers/runtime-spec v1.3.0 // indirect
68+
github.com/opencontainers/selinux v1.13.0 // indirect
69+
github.com/pelletier/go-toml/v2 v2.2.4 // indirect
5270
github.com/pkg/errors v0.9.1 // indirect
53-
github.com/rs/xid v1.5.0 // indirect
71+
github.com/rs/xid v1.6.0 // indirect
5472
github.com/sirupsen/logrus v1.9.3 // indirect
55-
github.com/spf13/pflag v1.0.5 // indirect
56-
go.etcd.io/bbolt v1.3.9 // indirect
73+
github.com/spf13/pflag v1.0.10 // indirect
74+
go.etcd.io/bbolt v1.4.3 // indirect
5775
go.opencensus.io v0.24.0 // indirect
58-
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.50.0 // indirect
59-
go.opentelemetry.io/otel v1.25.0 // indirect
60-
go.opentelemetry.io/otel/metric v1.25.0 // indirect
61-
go.opentelemetry.io/otel/trace v1.25.0 // indirect
62-
golang.org/x/net v0.24.0 // indirect
63-
golang.org/x/sync v0.7.0 // indirect
64-
golang.org/x/sys v0.19.0 // indirect
65-
golang.org/x/text v0.14.0 // indirect
66-
google.golang.org/genproto v0.0.0-20240415180920-8c6c420018be // indirect
67-
google.golang.org/genproto/googleapis/rpc v0.0.0-20240415180920-8c6c420018be // indirect
68-
google.golang.org/grpc v1.63.2 // indirect
69-
google.golang.org/protobuf v1.33.0 // indirect
76+
go.opentelemetry.io/auto/sdk v1.2.1 // indirect
77+
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.63.0 // indirect
78+
go.opentelemetry.io/otel v1.38.0 // indirect
79+
go.opentelemetry.io/otel/metric v1.38.0 // indirect
80+
go.opentelemetry.io/otel/trace v1.38.0 // indirect
81+
golang.org/x/net v0.46.0 // indirect
82+
golang.org/x/sync v0.17.0 // indirect
83+
golang.org/x/sys v0.37.0 // indirect
84+
golang.org/x/text v0.30.0 // indirect
85+
google.golang.org/genproto v0.0.0-20251103181224-f26f9409b101 // indirect
86+
google.golang.org/genproto/googleapis/rpc v0.0.0-20251103181224-f26f9409b101 // indirect
87+
google.golang.org/grpc v1.76.0 // indirect
88+
google.golang.org/protobuf v1.36.10 // indirect
7089
)
90+
91+
replace github.com/opencontainers/runtime-spec => github.com/opencontainers/runtime-spec v1.2.1 // containerd compatibility

0 commit comments

Comments
 (0)