Skip to content

Commit 8205360

Browse files
authored
Merge pull request #885 from stevvooe/use-embed
schema: use Go's embed package instead of esc
2 parents 9716dee + 4533d3e commit 8205360

File tree

8 files changed

+34
-1686
lines changed

8 files changed

+34
-1686
lines changed

Makefile

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@ help:
4949
@echo " * 'docs' - produce document in the $(OUTPUT_DIRNAME) directory"
5050
@echo " * 'fmt' - format the json with indentation"
5151
@echo " * 'validate-examples' - validate the examples in the specification markdown files"
52-
@echo " * 'schema-fs' - regenerate the virtual schema http/FileSystem"
5352
@echo " * 'check-license' - check license headers in source files"
5453
@echo " * 'lint' - Execute the source code linter"
5554
@echo " * 'test' - Execute the unit tests"
@@ -79,15 +78,9 @@ endif
7978
header.html: .tool/genheader.go specs-go/version.go
8079
go run .tool/genheader.go > $@
8180

82-
validate-examples: schema/fs.go
81+
validate-examples: schema/schema.go
8382
go test -run TestValidate ./schema
8483

85-
schema/fs.go: $(wildcard schema/*.json) schema/gen.go
86-
cd schema && printf "%s\n\n%s\n" "$$(cat ../.header)" "$$(go generate)" > fs.go
87-
88-
schema-fs: schema/fs.go
89-
@echo "generating schema fs"
90-
9184
check-license:
9285
@echo "checking license headers"
9386
@./.tool/check-license
@@ -117,9 +110,6 @@ install.tools: $(TOOLS:%=.install.%)
117110
.install.lint:
118111
go get github.com/golangci/golangci-lint/cmd/golangci-lint@latest
119112

120-
.install.esc:
121-
go get -u github.com/mjibson/esc
122-
123113
.install.gitvalidation:
124114
go get -u github.com/vbatts/git-validation
125115

go.mod

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,14 @@
11
module github.com/opencontainers/image-spec
22

3-
go 1.11
3+
go 1.16
44

55
require (
66
github.com/davecgh/go-spew v1.1.1 // indirect
7-
github.com/golangci/golangci-lint v1.43.0 // indirect
8-
github.com/kr/text v0.2.0 // indirect
9-
github.com/niemeyer/pretty v0.0.0-20200227124842-a10e7caefd8e // indirect
107
github.com/opencontainers/go-digest v1.0.0
118
github.com/pkg/errors v0.9.1
129
github.com/russross/blackfriday v1.6.0
1310
github.com/stretchr/testify v1.7.0 // indirect
1411
github.com/xeipuuv/gojsonreference v0.0.0-20180127040603-bd5ef7bd5415
1512
github.com/xeipuuv/gojsonschema v1.2.0
16-
gopkg.in/check.v1 v1.0.0-20200227125254-8fa46927fb4f // indirect
1713
gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b // indirect
1814
)

go.sum

Lines changed: 0 additions & 1283 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)