Skip to content

Commit 9d3aef5

Browse files
author
Mrunal Patel
committed
Merge pull request opencontainers#385 from hqhq/hq_fix_schema_readme
Fix example in schema README
2 parents 9d19982 + aaf05c4 commit 9d3aef5

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

schema/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,6 @@ fmt:
1111
for i in *.json ; do jq --indent 4 -M . "$${i}" > xx && cat xx > "$${i}" && rm xx ; done
1212

1313
validate: validate.go
14+
go get -d ./...
1415
go build ./validate.go
1516

schema/README.md

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,19 @@ There is also included a simple utility for facilitating validation of a
2020

2121
```bash
2222
export GOPATH=`mktemp -d`
23-
go get ./...
24-
go build .
23+
go get -d ./...
24+
go build ./validate.go
2525
rm -rf $GOPATH
2626
```
2727

28+
Or you can just use make command to create the utility:
29+
30+
```bash
31+
make validate
32+
```
33+
2834
Then use it like:
2935

3036
```bash
31-
./schema schema.json <yourpath>/config.json
37+
./validate schema.json <yourpath>/config.json
3238
```

0 commit comments

Comments
 (0)