Skip to content

Commit 7686062

Browse files
author
Maksym Pavlenko
authored
Merge pull request containerd#10178 from dmcgowan/update-api-1.8-0-rc.0
Update containerd api to v1.8.0-rc.0
2 parents 04c7d6c + 88b5211 commit 7686062

File tree

6 files changed

+210
-10
lines changed

6 files changed

+210
-10
lines changed

Makefile

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ GOTEST ?= $(GO) test
150150
OUTPUTDIR = $(join $(ROOTDIR), _output)
151151
CRIDIR=$(OUTPUTDIR)/cri
152152

153-
.PHONY: clean all AUTHORS build binaries test integration generate protos check-protos coverage ci check help install uninstall vendor release static-release mandir install-man install-doc genman install-cri-deps cri-release cri-cni-release cri-integration install-deps bin/cri-integration.test
153+
.PHONY: clean all AUTHORS build binaries test integration generate protos check-protos coverage ci check help install uninstall vendor release static-release mandir install-man install-doc genman install-cri-deps cri-release cri-cni-release cri-integration install-deps bin/cri-integration.test remove-replace clean-vendor
154154
.DEFAULT: default
155155

156156
# Forcibly set the default goal to all, in case an include above brought in a rule definition.
@@ -181,6 +181,8 @@ protos: bin/protoc-gen-go-fieldpath
181181
@rm -rf ${TMPDIR} v2
182182
go-fix-acronym -w -a '^Os' $(shell find api/ -name '*.pb.go')
183183
go-fix-acronym -w -a '(Id|Io|Uuid|Os)$$' $(shell find api/ -name '*.pb.go')
184+
@test -z "$$(git status --short | grep "api/next.pb.txt" | tee /dev/stderr)" || \
185+
$(GO) mod edit -replace=github.com/containerd/containerd/api=./api
184186

185187
check-protos: protos ## check if protobufs needs to be generated again
186188
@echo "$(WHALE) $@"
@@ -466,6 +468,10 @@ root-coverage: ## generate coverage profiles for unit tests that require root
466468
fi; \
467469
done )
468470

471+
remove-replace:
472+
@echo "$(WHALE) $@"
473+
@$(GO) mod edit -dropreplace=github.com/containerd/containerd/api
474+
469475
vendor: ## ensure all the go.mod/go.sum files are up-to-date including vendor/ directory
470476
@echo "$(WHALE) $@"
471477
@$(GO) mod tidy
@@ -484,6 +490,8 @@ verify-vendor: ## verify if all the go.mod/go.sum files are up-to-date
484490
@diff -r -u -q ${ROOTDIR} ${TMPDIR}/containerd
485491
@rm -rf ${TMPDIR}
486492

493+
clean-vendor: remove-replace vendor
494+
487495

488496
help: ## this help
489497
@awk 'BEGIN {FS = ":.*?## "} /^[a-zA-Z_-]+:.*?## / {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}' $(MAKEFILE_LIST) | sort

go.mod

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ require (
1313
github.com/containerd/btrfs/v2 v2.0.0
1414
github.com/containerd/cgroups/v3 v3.0.3
1515
github.com/containerd/console v1.0.4
16-
github.com/containerd/containerd/api v0.0.0
16+
github.com/containerd/containerd/api v1.8.0-rc.0
1717
github.com/containerd/continuity v0.4.3
1818
github.com/containerd/errdefs v0.1.0
1919
github.com/containerd/fifo v1.1.0
@@ -141,6 +141,3 @@ require (
141141
sigs.k8s.io/yaml v1.3.0 // indirect
142142
tags.cncf.io/container-device-interface/specs-go v0.7.0 // indirect
143143
)
144-
145-
// Use the relative local source of the github.com/containerd/containerd/api to build
146-
replace github.com/containerd/containerd/api => ./api

go.sum

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,8 @@ github.com/containerd/cgroups/v3 v3.0.3 h1:S5ByHZ/h9PMe5IOQoN7E+nMc2UcLEM/V48DGD
4141
github.com/containerd/cgroups/v3 v3.0.3/go.mod h1:8HBe7V3aWGLFPd/k03swSIsGjZhHI2WzJmticMgVuz0=
4242
github.com/containerd/console v1.0.4 h1:F2g4+oChYvBTsASRTz8NP6iIAi97J3TtSAsLbIFn4ro=
4343
github.com/containerd/console v1.0.4/go.mod h1:YynlIjWYF8myEu6sdkwKIvGQq+cOckRm6So2avqoYAk=
44+
github.com/containerd/containerd/api v1.8.0-rc.0 h1:g3tto9iJ+iaxkZEfyfOYHF3awmzloi0jq+nnYjhysFE=
45+
github.com/containerd/containerd/api v1.8.0-rc.0/go.mod h1:UfMc6fIM+QEhf9/S1XbToiERqHK3/1G/vNnGk+++cZk=
4446
github.com/containerd/continuity v0.4.3 h1:6HVkalIp+2u1ZLH1J/pYX2oBVXlJZvh1X1A7bEZ9Su8=
4547
github.com/containerd/continuity v0.4.3/go.mod h1:F6PTNCKepoxEaXLQp3wDAjygEnImnZ/7o4JzpodfroQ=
4648
github.com/containerd/errdefs v0.1.0 h1:m0wCRBiu1WJT/Fr+iOoQHMQS/eP5myQ8lCv4Dz5ZURM=

releases/README.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,15 +27,18 @@ verified:
2727

2828
3. Update the version file at `https://github.com/containerd/containerd/blob/main/version/version.go`
2929

30-
4. (major/minor release only) Update RELEASES.md to refer to the new release and dates.
30+
4. Ensure api replace statement is removed, run `make clean-vendor` and ensure
31+
no api changes in vendor afterwards.
3132

32-
5. Update the `.mailmap` files for commit authors which have multiple email addresses in the commit log.
33+
5. (major/minor release only) Update RELEASES.md to refer to the new release and dates.
34+
35+
6. Update the `.mailmap` files for commit authors which have multiple email addresses in the commit log.
3336
If it is not clear which email or name the contributor might want used in the release notes, reach
3437
out to the contributor for feedback. NOTE: real names should be used whenever possible. The file is
3538
maintained by manually adding entries to the file.
3639
- e.g. `Real Name <[email protected]> Other Name <[email protected]>`
3740

38-
6. Before opening the pull request, run the release tool using the new release notes.
41+
7. Before opening the pull request, run the release tool using the new release notes.
3942
Ensure the output matches what is expected, including contributors, change log,
4043
dependencies, and visual elements such as spacing. If a contributor is duplicated,
4144
use the emails outputted by the release tool to update the mailmap then re-run. The

vendor/github.com/containerd/containerd/api/LICENSE

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

vendor/modules.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ github.com/containerd/cgroups/v3/cgroup2/stats
108108
# github.com/containerd/console v1.0.4
109109
## explicit; go 1.13
110110
github.com/containerd/console
111-
# github.com/containerd/containerd/api v0.0.0 => ./api
111+
# github.com/containerd/containerd/api v1.8.0-rc.0
112112
## explicit; go 1.22.0
113113
github.com/containerd/containerd/api/events
114114
github.com/containerd/containerd/api/runtime/sandbox/v1
@@ -812,4 +812,3 @@ tags.cncf.io/container-device-interface/pkg/parser
812812
# tags.cncf.io/container-device-interface/specs-go v0.7.0
813813
## explicit; go 1.19
814814
tags.cncf.io/container-device-interface/specs-go
815-
# github.com/containerd/containerd/api => ./api

0 commit comments

Comments
 (0)