@@ -12,7 +12,6 @@ PANDOC_CONTAINER ?= ghcr.io/opencontainers/pandoc:2.9.2.1-8.fc33.x86_64@sha256:5
1212ifeq "$(strip $(PANDOC ) ) " ''
1313 ifneq "$(strip $(DOCKER))" ''
1414 PANDOC = $(DOCKER) run \
15- -it \
1615 --rm \
1716 -v $(shell pwd)/:/input/:ro \
1817 -v $(shell pwd)/$(OUTPUT_DIRNAME)/:/$(OUTPUT_DIRNAME)/ \
@@ -28,7 +27,6 @@ GOLANGCILINT_CONTAINER ?= ghcr.io/opencontainers/golangci-lint:v1.39.0@sha256:7b
2827ifeq "$(strip $(GOLANGCILINT ) ) " ''
2928 ifneq "$(strip $(DOCKER))" ''
3029 GOLANGCILINT = $(DOCKER) run \
31- -it \
3230 --rm \
3331 -v $(shell pwd)/:/input:ro \
3432 -e GOCACHE=/tmp/.cache \
@@ -48,11 +46,11 @@ FIGURE_FILES :=
4846
4947test : .gitvalidation
5048
51- # When this is running in travis , it will only check the travis commit range
49+ # When this is running in GitHub , it will only check the GitHub commit range
5250.gitvalidation :
5351 @command -v git-validation > /dev/null 2> /dev/null || (echo " ERROR: git-validation not found. Consider 'make install.tools' target" && false)
54- ifdef TRAVIS_COMMIT_RANGE
55- git-validation -q -run DCO,short-subject,dangling-whitespace
52+ ifdef GITHUB_SHA
53+ git-validation -q -run DCO,short-subject,dangling-whitespace -range $(GITHUB_SHA)..HEAD
5654else
5755 git-validation -v -run DCO,short-subject,dangling-whitespace -range $(EPOCH_TEST_COMMIT)..HEAD
5856endif
@@ -76,7 +74,9 @@ $(OUTPUT_DIRNAME)/$(DOC_FILENAME).html: header.html $(DOC_FILES) $(FIGURE_FILES)
7674endif
7775
7876header.html : .tool/genheader.go specs-go/version.go
79- go mod init && \
77+ rm -f go.mod go.sum && \
78+ go mod init github.com/opencontainers/distribution-spec && \
79+ go get github.com/opencontainers/distribution-spec/specs-go && \
8080 go run .tool/genheader.go > $@
8181
8282install.tools : .install.gitvalidation
0 commit comments