Skip to content

Commit d59c940

Browse files
authored
Merge pull request #601 from sudo-bmitch/pr-go-sum
Remove the ignore on go.sum
2 parents 5e57cc0 + ede3376 commit d59c940

4 files changed

Lines changed: 15 additions & 14 deletions

File tree

.gitignore

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
output
44
header.html
55
tags
6-
go.mod
7-
go.sum
6+
go.work
87
junit.xml
98
report.html

.tool/go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ module github.com/opencontainers/distribution-spec/.tool
22

33
go 1.15
44

5-
require github.com/opencontainers/distribution-spec/specs-go v0.0.0-20210623213441-eb171947459c // indirect
5+
require github.com/opencontainers/distribution-spec/specs-go v0.0.0-20260313153622-5e57cc0a07ea

.tool/go.sum

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
github.com/opencontainers/distribution-spec/specs-go v0.0.0-20210623213441-eb171947459c h1:7zh9TklTB1x95V7yygkuKSdBlgsCjQvamWTEKPkK80o=
2+
github.com/opencontainers/distribution-spec/specs-go v0.0.0-20210623213441-eb171947459c/go.mod h1:aA4vdXRS8E1TG7pLZOz85InHi3BiPdErh8IpJN6E0x4=
3+
github.com/opencontainers/distribution-spec/specs-go v0.0.0-20260313153622-5e57cc0a07ea h1:2gucIpEeV3BzUKWXcLuDAYKPnPcVwVBi+f63IS2WBQA=
4+
github.com/opencontainers/distribution-spec/specs-go v0.0.0-20260313153622-5e57cc0a07ea/go.mod h1:Va0IMqkjv62YSEytL4sgxrkiD9IzU0T0bX/ZZEtMnSQ=

Makefile

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -9,18 +9,17 @@ GOLANGCILINT ?= $(shell command -v golangcli-lint 2>/dev/null)
99
OUTPUT_DIRNAME ?= output/
1010
DOC_FILENAME ?= oci-distribution-spec
1111

12-
PANDOC_CONTAINER ?= ghcr.io/opencontainers/pandoc:2.9.2.1-9.fc34.x86_64@sha256:590c5c7aaa6e8e7a4debae7e9102c837daa0c8a76f8f5b5c9831ea5f755e3e95
12+
# pinned to a 3.1 release due to a regression, see https://github.com/jgm/pandoc/issues/10952 before upgrading
13+
PANDOC_CONTAINER ?= docker.io/pandoc/latex:3.1@sha256:1cf54d9214a9b52de2f58cf5895cc596a5960711a54d7938dc72f2b23473caf3
1314
ifeq "$(strip $(PANDOC))" ''
1415
ifneq "$(strip $(DOCKER))" ''
1516
PANDOC = $(DOCKER) run \
1617
--rm \
17-
-v $(shell pwd)/:/input/:ro \
18-
-v $(shell pwd)/$(OUTPUT_DIRNAME)/:/$(OUTPUT_DIRNAME)/ \
19-
-u $(shell id -u) \
20-
--workdir /input \
18+
-v "$(CURDIR)/:/workdir/:ro" \
19+
-v "$(CURDIR)/$(OUTPUT_DIRNAME)/:/workdir/$(OUTPUT_DIRNAME)/" \
20+
-u "$(shell id -u):$(shell id -g)" \
21+
--workdir /workdir \
2122
$(PANDOC_CONTAINER)
22-
PANDOC_SRC := /input/
23-
PANDOC_DST := /
2423
endif
2524
endif
2625

@@ -75,10 +74,9 @@ $(OUTPUT_DIRNAME)/$(DOC_FILENAME).html: header.html $(DOC_FILES) $(FIGURE_FILES)
7574
endif
7675

7776
header.html: .tool/genheader.go specs-go/version.go
78-
rm -f go.mod go.sum && \
79-
go mod init github.com/opencontainers/distribution-spec && \
80-
go get github.com/opencontainers/distribution-spec/specs-go && \
81-
go run .tool/genheader.go > $@
77+
go work init ./specs-go ./.tool && \
78+
go run .tool/genheader.go > $@ && \
79+
rm go.work
8280

8381
install.tools: .install.gitvalidation
8482

0 commit comments

Comments
 (0)