Skip to content

Commit

Permalink
ci: fix env var format
Browse files Browse the repository at this point in the history
  • Loading branch information
cpunion committed Mar 9, 2024
1 parent 4e86df5 commit cdc9e08
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 31 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/check_goreleaser_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
print("Update .goreleaser.yaml in the nfpms section:")
for f in files:
print(f" - src: \"{f}\"")
print(f" dst: \"/usr/lib/{{ .ProjectName }}/{f}\"")
print(f" dst: \"/usr/lib/{{{{ .ProjectName }}}}/{f}\"")

if failed:
exit(1)
Expand Down
60 changes: 30 additions & 30 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -148,65 +148,65 @@ nfpms:
contents:
# source folder
- src: "LICENSE"
dst: "/usr/lib/{ .ProjectName }/LICENSE"
dst: "/usr/lib/{{ .ProjectName }}/LICENSE"
- src: "Makefile"
dst: "/usr/lib/{ .ProjectName }/Makefile"
dst: "/usr/lib/{{ .ProjectName }}/Makefile"
- src: "README.md"
dst: "/usr/lib/{ .ProjectName }/README.md"
dst: "/usr/lib/{{ .ProjectName }}/README.md"
- src: "_gendeps.go"
dst: "/usr/lib/{ .ProjectName }/_gendeps.go"
dst: "/usr/lib/{{ .ProjectName }}/_gendeps.go"
- src: "all.bash"
dst: "/usr/lib/{ .ProjectName }/all.bash"
dst: "/usr/lib/{{ .ProjectName }}/all.bash"
- src: "all.bat"
dst: "/usr/lib/{ .ProjectName }/all.bat"
dst: "/usr/lib/{{ .ProjectName }}/all.bat"
- src: "ast"
dst: "/usr/lib/{ .ProjectName }/ast"
dst: "/usr/lib/{{ .ProjectName }}/ast"
- src: "build_install_run.go"
dst: "/usr/lib/{ .ProjectName }/build_install_run.go"
dst: "/usr/lib/{{ .ProjectName }}/build_install_run.go"
- src: "builtin"
dst: "/usr/lib/{ .ProjectName }/builtin"
dst: "/usr/lib/{{ .ProjectName }}/builtin"
- src: "cl"
dst: "/usr/lib/{ .ProjectName }/cl"
dst: "/usr/lib/{{ .ProjectName }}/cl"
- src: "cmd"
dst: "/usr/lib/{ .ProjectName }/cmd"
dst: "/usr/lib/{{ .ProjectName }}/cmd"
- src: "doc"
dst: "/usr/lib/{ .ProjectName }/doc"
dst: "/usr/lib/{{ .ProjectName }}/doc"
- src: "env"
dst: "/usr/lib/{ .ProjectName }/env"
dst: "/usr/lib/{{ .ProjectName }}/env"
- src: "format"
dst: "/usr/lib/{ .ProjectName }/format"
dst: "/usr/lib/{{ .ProjectName }}/format"
- src: "gengo.go"
dst: "/usr/lib/{ .ProjectName }/gengo.go"
dst: "/usr/lib/{{ .ProjectName }}/gengo.go"
- src: "go.mod"
dst: "/usr/lib/{ .ProjectName }/go.mod"
dst: "/usr/lib/{{ .ProjectName }}/go.mod"
- src: "go.sum"
dst: "/usr/lib/{ .ProjectName }/go.sum"
dst: "/usr/lib/{{ .ProjectName }}/go.sum"
- src: "imp.go"
dst: "/usr/lib/{ .ProjectName }/imp.go"
dst: "/usr/lib/{{ .ProjectName }}/imp.go"
- src: "load.go"
dst: "/usr/lib/{ .ProjectName }/load.go"
dst: "/usr/lib/{{ .ProjectName }}/load.go"
- src: "make.bash"
dst: "/usr/lib/{ .ProjectName }/make.bash"
dst: "/usr/lib/{{ .ProjectName }}/make.bash"
- src: "make.bat"
dst: "/usr/lib/{ .ProjectName }/make.bat"
dst: "/usr/lib/{{ .ProjectName }}/make.bat"
- src: "outline.go"
dst: "/usr/lib/{ .ProjectName }/outline.go"
dst: "/usr/lib/{{ .ProjectName }}/outline.go"
- src: "parser"
dst: "/usr/lib/{ .ProjectName }/parser"
dst: "/usr/lib/{{ .ProjectName }}/parser"
- src: "printer"
dst: "/usr/lib/{ .ProjectName }/printer"
dst: "/usr/lib/{{ .ProjectName }}/printer"
- src: "scanner"
dst: "/usr/lib/{ .ProjectName }/scanner"
dst: "/usr/lib/{{ .ProjectName }}/scanner"
- src: "test"
dst: "/usr/lib/{ .ProjectName }/test"
dst: "/usr/lib/{{ .ProjectName }}/test"
- src: "testdata"
dst: "/usr/lib/{ .ProjectName }/testdata"
dst: "/usr/lib/{{ .ProjectName }}/testdata"
- src: "tidy.go"
dst: "/usr/lib/{ .ProjectName }/tidy.go"
dst: "/usr/lib/{{ .ProjectName }}/tidy.go"
- src: "token"
dst: "/usr/lib/{ .ProjectName }/token"
dst: "/usr/lib/{{ .ProjectName }}/token"
- src: "x"
dst: "/usr/lib/{ .ProjectName }/x"
dst: "/usr/lib/{{ .ProjectName }}/x"
# symlinks to binaries
- src: "/usr/lib/{{ .ProjectName }}/bin/gop"
dst: /usr/bin/gop
Expand Down

0 comments on commit cdc9e08

Please sign in to comment.