Skip to content

Commit

Permalink
Adds jsonnet-lint to the releases (#664)
Browse files Browse the repository at this point in the history
  • Loading branch information
jregehr committed Jan 16, 2023
1 parent 353caa1 commit 1233966
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 1 deletion.
36 changes: 36 additions & 0 deletions .goreleaser.yml
Expand Up @@ -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
Expand Down Expand Up @@ -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
2 changes: 1 addition & 1 deletion cmd/jsonnet-lint/cmd.go
Expand Up @@ -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.")
Expand Down

0 comments on commit 1233966

Please sign in to comment.