mirror of
https://github.com/containerd/containerd.git
synced 2026-11-06 05:17:02 +00:00
Install buf on demand via go install
Signed-off-by: Maksym Pavlenko <pavlenko.maksym@gmail.com>
This commit is contained in:
1 file changed
+5
-1
@@ -176,7 +176,7 @@ generate: protos
|
||||
@echo "$(WHALE) $@"
|
||||
@PATH="${ROOTDIR}/bin:${PATH}" $(GO) generate -x ${PACKAGES}
|
||||
|
||||
protos: bin/protoc-gen-go-fieldpath bin/go-buildtag
|
||||
protos: bin/protoc-gen-go-fieldpath bin/go-buildtag bin/buf
|
||||
@echo "$(WHALE) $@"
|
||||
|
||||
# This part is only required because we historically do a fully qualified import in proto files,
|
||||
@@ -293,6 +293,10 @@ bin/containerd-shim-runc-v2: cmd/containerd-shim-runc-v2 FORCE # set !cgo and om
|
||||
@echo "$(WHALE) $@"
|
||||
CGO_ENABLED=${SHIM_CGO_ENABLED} $(GO) build ${GO_BUILD_FLAGS} -o $@ ${SHIM_GO_LDFLAGS} ${SHIM_GO_TAGS} ./cmd/containerd-shim-runc-v2
|
||||
|
||||
bin/buf:
|
||||
@echo "$(WHALE) $@"
|
||||
GOBIN=$(CURDIR)/bin $(GO) install github.com/bufbuild/buf/cmd/buf@v1.63.0
|
||||
|
||||
binaries: $(BINARIES) ## build binaries
|
||||
@echo "$(WHALE) $@"
|
||||
|
||||
|
||||
Reference in new issue
Block a user