mirror of
https://github.com/containers/podman.git
synced 2025-12-09 07:09:03 +08:00
Update buildah to current master
Vendor some changes to parsing code that we need for Podman. Signed-off-by: Matthew Heon <matthew.heon@pm.me>
This commit is contained in:
16
vendor/github.com/containers/buildah/Makefile
generated
vendored
16
vendor/github.com/containers/buildah/Makefile
generated
vendored
@@ -21,7 +21,7 @@ export GO_BUILD=$(GO) build
|
||||
endif
|
||||
|
||||
GIT_COMMIT ?= $(if $(shell git rev-parse --short HEAD),$(shell git rev-parse --short HEAD),$(error "git failed"))
|
||||
BUILD_INFO := $(if $(shell date +%s),$(shell date +%s),$(error "date failed"))
|
||||
SOURCE_DATE_EPOCH ?= $(if $(shell date +%s),$(shell date +%s),$(error "date failed"))
|
||||
STATIC_STORAGETAGS = "containers_image_ostree_stub containers_image_openpgp exclude_graphdriver_devicemapper $(STORAGE_TAGS)"
|
||||
|
||||
CNI_COMMIT := $(shell sed -n 's;\tgithub.com/containernetworking/cni \([^ \n]*\).*$\;\1;p' go.mod)
|
||||
@@ -29,7 +29,7 @@ RUNC_COMMIT := $(shell sed -n 's;\tgithub.com/opencontainers/runc \([^ \n]*\).*$
|
||||
LIBSECCOMP_COMMIT := release-2.3
|
||||
|
||||
EXTRALDFLAGS :=
|
||||
LDFLAGS := -ldflags '-X main.GitCommit=$(GIT_COMMIT) -X main.buildInfo=$(BUILD_INFO) -X main.cniVersion=$(CNI_COMMIT)' $(EXTRALDFLAGS)
|
||||
LDFLAGS := -ldflags '-X main.GitCommit=$(GIT_COMMIT) -X main.buildInfo=$(SOURCE_DATE_EPOCH) -X main.cniVersion=$(CNI_COMMIT)' $(EXTRALDFLAGS)
|
||||
SOURCES=*.go imagebuildah/*.go bind/*.go chroot/*.go cmd/buildah/*.go docker/*.go pkg/blobcache/*.go pkg/cli/*.go pkg/parse/*.go pkg/unshare/*.c pkg/unshare/*.go util/*.go
|
||||
|
||||
all: buildah imgtype docs
|
||||
@@ -65,19 +65,9 @@ docs: install.tools ## build the docs on the host
|
||||
gopath:
|
||||
test $(shell pwd) = $(shell cd ../../../../src/github.com/containers/buildah ; pwd)
|
||||
|
||||
# We use https://github.com/lk4d4/vndr to manage dependencies.
|
||||
.PHONY: deps
|
||||
deps: gopath
|
||||
env GOPATH=$(shell cd ../../../.. ; pwd) vndr
|
||||
|
||||
.PHONY: validate
|
||||
validate: install.tools
|
||||
# Run gofmt on version 1.11 and higher
|
||||
ifneq ($(GO110),$(GOVERSION))
|
||||
@./tests/validate/gofmt.sh
|
||||
endif
|
||||
@./tests/validate/whitespace.sh
|
||||
@./tests/validate/govet.sh
|
||||
@./tests/validate/git-validation.sh
|
||||
|
||||
.PHONY: install.tools
|
||||
@@ -124,7 +114,7 @@ install.runc:
|
||||
|
||||
.PHONY: test-integration
|
||||
test-integration: install.tools
|
||||
./tests/tools/ginkgo $(BUILDFLAGS) -v tests/e2e/.
|
||||
./tests/tools/build/ginkgo $(BUILDFLAGS) -v tests/e2e/.
|
||||
cd tests; ./test_runner.sh
|
||||
|
||||
tests/testreport/testreport: tests/testreport/testreport.go
|
||||
|
||||
Reference in New Issue
Block a user