Skip to content

Commit 6554b0b

Browse files
committed
fix: adapt UnmarshalYAML functions to yaml/v4 rc.4, bump deps
- Bump all dependencies, including bumping yaml/v4 to v4.0.0-rc.4, and rekres. - yaml/v4 v4.0.0-rc.4 changed `Unmarshal` to pass a `DocumentNode` to custom `UnmarshalYAML` implementations instead of the inner `MappingNode`. Unwrap the `DocumentNode` in `Metadata.UnmarshalYAML` and `YAMLResource.UnmarshalYAML` before processing. Bump `go.yaml.in/yaml/v4` from v4.0.0-rc.2 to v4.0.0-rc.4. Signed-off-by: Utku Ozdemir <utku.ozdemir@siderolabs.com>
1 parent 2b3357e commit 6554b0b

File tree

29 files changed

+182
-169
lines changed

29 files changed

+182
-169
lines changed

.conform.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# THIS FILE WAS AUTOMATICALLY GENERATED, PLEASE DO NOT EDIT.
22
#
3-
# Generated on 2024-02-28T13:50:02Z by kres latest.
3+
# Generated on 2026-02-11T22:21:54Z by kres f3ab59e.
44

55
policies:
66
- type: commit
@@ -12,7 +12,7 @@ policies:
1212
gitHubOrganization: cosi-project
1313
spellcheck:
1414
locale: US
15-
maximumOfOneCommit: true
15+
maximumOfOneCommit: false
1616
header:
1717
length: 89
1818
imperative: true

.github/workflows/ci.yaml

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# THIS FILE WAS AUTOMATICALLY GENERATED, PLEASE DO NOT EDIT.
22
#
3-
# Generated on 2025-10-31T08:08:31Z by kres cd5a938.
3+
# Generated on 2026-02-11T22:34:44Z by kres f3ab59e.
44

55
concurrency:
66
group: ${{ github.head_ref || github.run_id }}
@@ -31,7 +31,7 @@ jobs:
3131
steps:
3232
- name: gather-system-info
3333
id: system-info
34-
uses: kenchan0130/actions-system-info@v1.4.0
34+
uses: kenchan0130/actions-system-info@59699597e84e80085a750998045983daa49274c4 # version: v1.4.0
3535
continue-on-error: true
3636
- name: print-system-info
3737
run: |
@@ -55,13 +55,13 @@ jobs:
5555
done
5656
continue-on-error: true
5757
- name: checkout
58-
uses: actions/checkout@v5
58+
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # version: v6.0.1
5959
- name: Unshallow
6060
run: |
6161
git fetch --prune --unshallow
6262
- name: Set up Docker Buildx
6363
id: setup-buildx
64-
uses: docker/setup-buildx-action@v3
64+
uses: docker/setup-buildx-action@8d2750c68a42422c14e847fe6c8ac0403b4cbd6f # version: v3.12.0
6565
with:
6666
driver: remote
6767
endpoint: tcp://buildkit-amd64.ci.svc.cluster.local:1234
@@ -74,7 +74,7 @@ jobs:
7474
make runtime
7575
- name: Login to registry
7676
if: github.event_name != 'pull_request'
77-
uses: docker/login-action@v3
77+
uses: docker/login-action@5e57cd118135c172c3672efd75eb46360885c0ef # version: v3.6.0
7878
with:
7979
password: ${{ secrets.GITHUB_TOKEN }}
8080
registry: ghcr.io
@@ -106,7 +106,7 @@ jobs:
106106
make release-notes
107107
- name: Release
108108
if: startsWith(github.ref, 'refs/tags/')
109-
uses: softprops/action-gh-release@v2
109+
uses: softprops/action-gh-release@a06a81a03ee405af7f2048a818ed3f03bbf83c7b # version: v2.5.0
110110
with:
111111
body_path: _out/RELEASE_NOTES.md
112112
draft: "true"
@@ -122,7 +122,7 @@ jobs:
122122
steps:
123123
- name: gather-system-info
124124
id: system-info
125-
uses: kenchan0130/actions-system-info@v1.4.0
125+
uses: kenchan0130/actions-system-info@59699597e84e80085a750998045983daa49274c4 # version: v1.4.0
126126
continue-on-error: true
127127
- name: print-system-info
128128
run: |
@@ -146,13 +146,13 @@ jobs:
146146
done
147147
continue-on-error: true
148148
- name: checkout
149-
uses: actions/checkout@v5
149+
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # version: v6.0.1
150150
- name: Unshallow
151151
run: |
152152
git fetch --prune --unshallow
153153
- name: Set up Docker Buildx
154154
id: setup-buildx
155-
uses: docker/setup-buildx-action@v3
155+
uses: docker/setup-buildx-action@8d2750c68a42422c14e847fe6c8ac0403b4cbd6f # version: v3.12.0
156156
with:
157157
driver: remote
158158
endpoint: tcp://buildkit-amd64.ci.svc.cluster.local:1234
@@ -169,7 +169,7 @@ jobs:
169169
steps:
170170
- name: gather-system-info
171171
id: system-info
172-
uses: kenchan0130/actions-system-info@v1.4.0
172+
uses: kenchan0130/actions-system-info@59699597e84e80085a750998045983daa49274c4 # version: v1.4.0
173173
continue-on-error: true
174174
- name: print-system-info
175175
run: |
@@ -193,13 +193,13 @@ jobs:
193193
done
194194
continue-on-error: true
195195
- name: checkout
196-
uses: actions/checkout@v5
196+
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # version: v6.0.1
197197
- name: Unshallow
198198
run: |
199199
git fetch --prune --unshallow
200200
- name: Set up Docker Buildx
201201
id: setup-buildx
202-
uses: docker/setup-buildx-action@v3
202+
uses: docker/setup-buildx-action@8d2750c68a42422c14e847fe6c8ac0403b4cbd6f # version: v3.12.0
203203
with:
204204
driver: remote
205205
endpoint: tcp://buildkit-amd64.ci.svc.cluster.local:1234
@@ -211,7 +211,7 @@ jobs:
211211
run: |
212212
make unit-tests-race
213213
- name: coverage
214-
uses: codecov/codecov-action@v5
214+
uses: codecov/codecov-action@671740ac38dd9b0130fbe1cec585b89eea48d3de # version: v5.5.2
215215
with:
216216
files: _out/coverage-unit-tests.txt
217217
flags: unit-tests

.github/workflows/lock.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# THIS FILE WAS AUTOMATICALLY GENERATED, PLEASE DO NOT EDIT.
22
#
3-
# Generated on 2025-10-31T08:08:31Z by kres cd5a938.
3+
# Generated on 2026-02-11T22:21:54Z by kres f3ab59e.
44

55
"on":
66
schedule:
@@ -14,7 +14,7 @@ jobs:
1414
- ubuntu-latest
1515
steps:
1616
- name: Lock old issues
17-
uses: dessant/lock-threads@v5.0.1
17+
uses: dessant/lock-threads@7266a7ce5c1df01b1c6db85bf8cd86c737dadbe7 # version: v6.0.0
1818
with:
1919
issue-inactive-days: "60"
2020
log-output: "true"

.github/workflows/slack-notify-ci-failure.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# THIS FILE WAS AUTOMATICALLY GENERATED, PLEASE DO NOT EDIT.
22
#
3-
# Generated on 2025-10-31T08:08:31Z by kres cd5a938.
3+
# Generated on 2026-02-11T22:21:54Z by kres f3ab59e.
44

55
"on":
66
workflow_run:
@@ -18,7 +18,7 @@ jobs:
1818
if: github.event.workflow_run.conclusion == 'failure' && github.event.workflow_run.event != 'pull_request'
1919
steps:
2020
- name: Slack Notify
21-
uses: slackapi/slack-github-action@v2
21+
uses: slackapi/slack-github-action@91efab103c0de0a537f72a35f6b8cda0ee76bf0a # version: v2.1.1
2222
with:
2323
method: chat.postMessage
2424
payload: |

.github/workflows/slack-notify.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# THIS FILE WAS AUTOMATICALLY GENERATED, PLEASE DO NOT EDIT.
22
#
3-
# Generated on 2025-10-31T08:08:31Z by kres cd5a938.
3+
# Generated on 2026-02-11T22:21:54Z by kres f3ab59e.
44

55
"on":
66
workflow_run:
@@ -23,7 +23,7 @@ jobs:
2323
run: |
2424
echo pull_request_number=$(gh pr view -R ${{ github.repository }} ${{ github.event.workflow_run.head_repository.owner.login }}:${{ github.event.workflow_run.head_branch }} --json number --jq .number) >> $GITHUB_OUTPUT
2525
- name: Slack Notify
26-
uses: slackapi/slack-github-action@v2
26+
uses: slackapi/slack-github-action@91efab103c0de0a537f72a35f6b8cda0ee76bf0a # version: v2.1.1
2727
with:
2828
method: chat.postMessage
2929
payload: |

.github/workflows/stale.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# THIS FILE WAS AUTOMATICALLY GENERATED, PLEASE DO NOT EDIT.
22
#
3-
# Generated on 2025-10-31T08:08:31Z by kres cd5a938.
3+
# Generated on 2026-02-11T22:21:54Z by kres f3ab59e.
44

55
"on":
66
schedule:
@@ -15,7 +15,7 @@ jobs:
1515
- ubuntu-latest
1616
steps:
1717
- name: Close stale issues and PRs
18-
uses: actions/stale@v10.1.0
18+
uses: actions/stale@997185467fa4f803885201cee163a9f38240193d # version: v10.1.1
1919
with:
2020
close-issue-message: This issue was closed because it has been stalled for 7 days with no activity.
2121
days-before-issue-close: "5"

.golangci.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# THIS FILE WAS AUTOMATICALLY GENERATED, PLEASE DO NOT EDIT.
22
#
3-
# Generated on 2025-09-01T12:59:11Z by kres 784fa1f.
3+
# Generated on 2026-02-11T22:21:54Z by kres f3ab59e.
44

55
version: "2"
66

@@ -9,6 +9,7 @@ run:
99
modules-download-mode: readonly
1010
issues-exit-code: 1
1111
tests: true
12+
build-tags: []
1213

1314
# output configuration options
1415
output:

Dockerfile

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,22 @@
1-
# syntax = docker/dockerfile-upstream:1.19.0-labs
1+
# syntax = docker/dockerfile-upstream:1.20.0-labs
22

33
# THIS FILE WAS AUTOMATICALLY GENERATED, PLEASE DO NOT EDIT.
44
#
5-
# Generated on 2025-10-31T08:08:31Z by kres cd5a938.
5+
# Generated on 2026-02-11T22:34:44Z by kres f3ab59e.
66

7-
ARG TOOLCHAIN
7+
ARG TOOLCHAIN=scratch
88

9-
FROM ghcr.io/siderolabs/ca-certificates:v1.11.0 AS image-ca-certificates
9+
FROM ghcr.io/siderolabs/ca-certificates:v1.12.0 AS image-ca-certificates
1010

11-
FROM ghcr.io/siderolabs/fhs:v1.11.0 AS image-fhs
11+
FROM ghcr.io/siderolabs/fhs:v1.12.0 AS image-fhs
1212

1313
# runs markdownlint
14-
FROM docker.io/oven/bun:1.3.0-alpine AS lint-markdown
14+
FROM docker.io/oven/bun:1.3.6-alpine AS lint-markdown
1515
WORKDIR /src
16-
RUN bun i markdownlint-cli@0.45.0 sentences-per-line@0.3.0
16+
RUN bun i markdownlint-cli@0.47.0 sentences-per-line@0.5.0
1717
COPY .markdownlint.json .
1818
COPY ./README.md ./README.md
19-
RUN bunx markdownlint --ignore "CHANGELOG.md" --ignore "**/node_modules/**" --ignore '**/hack/chglog/**' --rules sentences-per-line .
19+
RUN bunx markdownlint --ignore "CHANGELOG.md" --ignore "**/node_modules/**" --ignore '**/hack/chglog/**' --rules markdownlint-sentences-per-line .
2020

2121
# collects proto specs
2222
FROM scratch AS proto-specs

Makefile

Lines changed: 22 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,40 @@
11
# THIS FILE WAS AUTOMATICALLY GENERATED, PLEASE DO NOT EDIT.
22
#
3-
# Generated on 2025-10-31T08:08:31Z by kres cd5a938.
3+
# Generated on 2026-02-11T22:34:44Z by kres f3ab59e.
44

55
# common variables
66

77
SHA := $(shell git describe --match=none --always --abbrev=8 --dirty)
88
TAG := $(shell git describe --tag --always --dirty --match v[0-9]\*)
9+
TAG_SUFFIX ?=
910
ABBREV_TAG := $(shell git describe --tags >/dev/null 2>/dev/null && git describe --tag --always --match v[0-9]\* --abbrev=0 || echo 'undefined')
1011
BRANCH := $(shell git rev-parse --abbrev-ref HEAD)
1112
ARTIFACTS := _out
12-
IMAGE_TAG ?= $(TAG)
13+
IMAGE_TAG ?= $(TAG)$(TAG_SUFFIX)
1314
OPERATING_SYSTEM := $(shell uname -s | tr '[:upper:]' '[:lower:]')
1415
GOARCH := $(shell uname -m | sed 's/x86_64/amd64/' | sed 's/aarch64/arm64/')
1516
WITH_DEBUG ?= false
1617
WITH_RACE ?= false
1718
REGISTRY ?= ghcr.io
1819
USERNAME ?= cosi-project
1920
REGISTRY_AND_USERNAME ?= $(REGISTRY)/$(USERNAME)
20-
PROTOBUF_GO_VERSION ?= 1.36.10
21-
GRPC_GO_VERSION ?= 1.5.1
22-
GRPC_GATEWAY_VERSION ?= 2.27.3
21+
PROTOBUF_GO_VERSION ?= 1.36.11
22+
GRPC_GO_VERSION ?= 1.6.0
23+
GRPC_GATEWAY_VERSION ?= 2.27.4
2324
VTPROTOBUF_VERSION ?= 0.6.0
24-
GOIMPORTS_VERSION ?= 0.38.0
25+
GOIMPORTS_VERSION ?= 0.41.0
2526
GOMOCK_VERSION ?= 0.6.0
2627
DEEPCOPY_VERSION ?= v0.5.8
27-
GOLANGCILINT_VERSION ?= v2.5.0
28-
GOFUMPT_VERSION ?= v0.9.1
29-
GO_VERSION ?= 1.25.3
28+
GOLANGCILINT_VERSION ?= v2.8.0
29+
GOFUMPT_VERSION ?= v0.9.2
30+
GO_VERSION ?= 1.25.6
3031
GO_BUILDFLAGS ?=
32+
GO_BUILDTAGS ?= ,
3133
GO_LDFLAGS ?=
3234
CGO_ENABLED ?= 0
3335
GOTOOLCHAIN ?= local
3436
GOEXPERIMENT ?=
37+
GO_BUILDFLAGS += -tags $(GO_BUILDTAGS)
3538
TESTPKGS ?= ./...
3639
KRES_IMAGE ?= ghcr.io/siderolabs/kres:latest
3740
CONFORMANCE_IMAGE ?= ghcr.io/siderolabs/conform:latest
@@ -43,6 +46,7 @@ PLATFORM ?= linux/amd64
4346
PROGRESS ?= auto
4447
PUSH ?= false
4548
CI_ARGS ?=
49+
WITH_BUILD_DEBUG ?=
4650
BUILDKIT_MULTI_PLATFORM ?=
4751
COMMON_ARGS = --file=Dockerfile
4852
COMMON_ARGS += --provenance=false
@@ -124,14 +128,18 @@ respectively.
124128

125129
endef
126130

131+
ifneq (, $(filter $(WITH_BUILD_DEBUG), t true TRUE y yes 1))
132+
BUILD := BUILDX_EXPERIMENTAL=1 docker buildx debug --invoke /bin/sh --on error build
133+
endif
134+
127135
ifneq (, $(filter $(WITH_RACE), t true TRUE y yes 1))
128136
GO_BUILDFLAGS += -race
129137
CGO_ENABLED := 1
130138
GO_LDFLAGS += -linkmode=external -extldflags '-static'
131139
endif
132140

133141
ifneq (, $(filter $(WITH_DEBUG), t true TRUE y yes 1))
134-
GO_BUILDFLAGS += -tags sidero.debug
142+
GO_BUILDTAGS := $(GO_BUILDTAGS)sidero.debug,
135143
else
136144
GO_LDFLAGS += -s
137145
endif
@@ -163,6 +171,10 @@ local-%: ## Builds the specified target defined in the Dockerfile using the loc
163171
fi; \
164172
done'
165173

174+
.PHONY: check-dirty
175+
check-dirty:
176+
@if test -n "`git status --porcelain`"; then echo "Source tree is dirty"; git status; git diff; exit 1 ; fi
177+
166178
generate: ## Generate .proto definitions.
167179
@$(MAKE) local-$@ DEST=./
168180

api/key_storage/key_storage.pb.go

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

0 commit comments

Comments
 (0)