Adds jsonnet-lint to the releases (#664)

This commit is contained in:
Jonathan Regehr 2023-01-16 14:12:40 -06:00 committed by GitHub
parent 353caa131c
commit 123396675b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 37 additions and 1 deletions

View File

@ -42,6 +42,26 @@ builds:
main: ./cmd/jsonnetfmt
binary: jsonnetfmt
- env:
- CGO_ENABLED=0
goos:
- linux
- windows
- darwin
goarch:
- 386
- amd64
- arm
- arm64
ignore:
- goos: darwin
goarch: 386
id: jsonnet-lint
main: ./cmd/jsonnet-lint
binary: jsonnet-lint
archives:
- replacements:
darwin: Darwin
@ -86,3 +106,19 @@ nfpms:
conflicts:
# See: https://packages.ubuntu.com/jsonnet
- jsonnetfmt
- id: jsonnet-lint
package_name: jsonnet-lint-go
builds:
- jsonnet-lint
homepage: https://github.com/google/go-jsonnet
license: Apache 2.0
formats:
- deb
bindir: /usr/bin
maintainer: David Cunningham <dcunnin@google.com>
file_name_template: "jsonnet-lint-go_{{ .Version }}_{{ .Os }}_{{ .Arch }}"
overrides:
deb:
conflicts:
# See: https://packages.ubuntu.com/jsonnet
- jsonnet-lint

View File

@ -42,7 +42,7 @@ func usage(o io.Writer) {
fmt.Fprintln(o, " Multichar options are expanded e.g. -abc becomes -a -b -c.")
fmt.Fprintln(o, " The -- option suppresses option processing for subsequent arguments.")
fmt.Fprintln(o, " Note that since filenames and jsonnet programs can begin with -, it is")
fmt.Fprintln(o, " advised to use -- if the argument is unknown, e.g. jsonnetfmt -- \"$FILENAME\".")
fmt.Fprintln(o, " advised to use -- if the argument is unknown, e.g. jsonnet-lint -- \"$FILENAME\".")
fmt.Fprintln(o)
fmt.Fprintln(o, "Exit code:")
fmt.Fprintln(o, " 0 If the file was checked no problems were found.")