You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Remove/replace stale references from hacking doc.
- Add spacing for markdown.
- Add code block language for syntax highlighting.
- Remove leading "$ " from commands without output.
- Move links to end.
- Switch to automatically generated help in Makefile.
Signed-off-by: Brandon Mitchell <[email protected]>
Copy file name to clipboardExpand all lines: HACKING.md
+35-34Lines changed: 35 additions & 34 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,96 +9,97 @@ This guide contains instructions for building artifacts contained in this reposi
9
9
This spec includes several Go packages, and a command line tool considered to be a reference implementation of the OCI image specification.
10
10
11
11
Prerequisites:
12
+
12
13
* Go - current release only, earlier releases are not supported
13
14
* make
14
15
15
16
The following make targets are relevant for any work involving the Go packages.
16
17
17
18
### Linting
18
19
19
-
The included Go source code is being examined for any linting violations not included in the standard Go compiler. Linting is done using [gometalinter](https://github.com/alecthomas/gometalinter).
20
+
The included Go source code is being examined for any linting violations not included in the standard Go compiler.
21
+
Linting is done using [golangci-lint][golangci-lint].
20
22
21
23
Invocation:
22
-
```
23
-
$ make lint
24
+
25
+
```shell
26
+
make lint
24
27
```
25
28
26
29
### Tests
27
30
28
31
This target executes all Go based tests.
29
32
30
33
Invocation:
31
-
```
32
-
$ make test
33
-
$ make validate-examples
34
-
```
35
-
36
-
### Virtual schema http/FileSystem
37
-
38
-
The `schema` validator uses a virtual [http/FileSystem](https://golang.org/pkg/net/http/#FileSystem) to load the JSON schema files for validating OCI images and/or manifests.
39
-
The virtual filesystem is generated using the `esc` tool and compiled into consumers of the `schema` package so the JSON schema files don't have to be distributed along with and consumer binaries.
40
34
41
-
Whenever changes are being done in any of the `schema/*.json` files, one must refresh the generated virtual filesystem.
42
-
Otherwise schema changes will not be visible inside `schema` consumers.
43
-
44
-
Prerequisites:
45
-
*[esc](https://github.com/mjibson/esc)
46
-
47
-
Invocation:
48
-
```
49
-
$ make schema-fs
35
+
```shell
36
+
make test
37
+
make validate-examples
50
38
```
51
39
52
40
### JSON schema formatting
53
41
54
42
This target auto-formats all JSON files in the `schema` directory using the `jq` tool.
0 commit comments