Skip to content

Commit eab6872

Browse files
committed
schema/gen: Include .json instead of excluding .go
To avoid accidentally including .swp, .un~, etc. [1]. Test with: $ touch schema/.defs-image.json.swp $ touch schema/.content-descriptor.json.un~ $ touch schema/foojson $ make schema-fs $ grep '"/' schema/fs.go "/config-schema.json": { "/content-descriptor.json": { "/defs-config.json": { "/defs-image.json": { "/defs.json": { "/image-layout-schema.json": { "/image-manifest-schema.json": { "/manifest-list-schema.json": { "/": { local: "/", [1]: #533 (comment) Signed-off-by: W. Trevor King <[email protected]>
1 parent 00850ec commit eab6872

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

schema/gen.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@ package schema
1818
// using esc (https://github.com/mjibson/esc).
1919

2020
// This should generally be invoked with `make schema-fs`
21-
//go:generate esc -private -pkg=schema -ignore=.*go .
21+
//go:generate esc -private -pkg=schema -include=.*\.json$ .

0 commit comments

Comments
 (0)