diff --git a/.goreleaser.yml b/.goreleaser.yml index 8cd7592..f7c4f7d 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -4,34 +4,31 @@ release: owner: alecthomas name: chroma brews: - - - install: bin.install "chroma" + - install: bin.install "chroma" env: - CGO_ENABLED=0 builds: -- goos: - - linux - - darwin - - windows - goarch: - - arm64 - - amd64 - - "386" - goarm: - - "6" - dir: ./cmd/chroma - main: . - ldflags: -s -w -X main.version={{.Version}} -X main.commit={{.Commit}} -X main.date={{.Date}} - binary: chroma + - goos: + - linux + - darwin + - windows + goarch: + - arm64 + - amd64 + - "386" + goarm: + - "6" + dir: ./cmd/chroma + main: . + ldflags: -s -w -X main.version={{.Version}} -X main.commit={{.Commit}} -X main.date={{.Date}} + binary: chroma archives: - - - format: tar.gz - name_template: '{{ .Binary }}-{{ .Version }}-{{ .Os }}-{{ .Arch }}{{ if .Arm }}v{{ - .Arm }}{{ end }}' + - format: tar.gz + name_template: "{{ .Binary }}-{{ .Version }}-{{ .Os }}-{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}" files: - COPYING - README* snapshot: name_template: SNAPSHOT-{{ .Commit }} checksum: - name_template: '{{ .ProjectName }}-{{ .Version }}-checksums.txt' + name_template: "{{ .ProjectName }}-{{ .Version }}-checksums.txt" diff --git a/bin/chroma b/bin/chroma index b88aa96..1a462b0 100755 --- a/bin/chroma +++ b/bin/chroma @@ -2,4 +2,4 @@ set -euo pipefail -(cd cmd/chroma ; go build -o $TMPDIR/chroma .) && exec $TMPDIR/chroma "$@" +go build -C cmd/chroma -o $TMPDIR/chroma . && exec $TMPDIR/chroma "$@" diff --git a/bin/chromad b/bin/chromad index 2620c98..6be62e5 100755 --- a/bin/chromad +++ b/bin/chromad @@ -2,4 +2,4 @@ set -euo pipefail -(cd cmd/chromad ; go build -o $TMPDIR/chromad .) && exec $TMPDIR/chromad "$@" +go build -C cmd/chromad -o $TMPDIR/chromad . && exec $TMPDIR/chromad "$@" diff --git a/cmd/chromad/templates/index.html.tmpl b/cmd/chromad/templates/index.html.tmpl index 41b42da..0246118 100644 --- a/cmd/chromad/templates/index.html.tmpl +++ b/cmd/chromad/templates/index.html.tmpl @@ -25,7 +25,7 @@ {{ .CSRFField }}