Skip to content

Commit 6fb021b

Browse files
amgoodfellowAaron Goodfellow
andauthored
fix: correct goreleaser template syntax (#42)
Co-authored-by: Aaron Goodfellow <agoodfellow@nowsecure.com>
1 parent a0faaaa commit 6fb021b

2 files changed

Lines changed: 10 additions & 1 deletion

File tree

.goreleaser.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ builds:
1111
- windows
1212
- darwin
1313
ldflags:
14-
- "-w -s -X 'github.com/nowsecure/nowsecure-ci/cmd/ns/version.version=${{ .Version }}'"
14+
- "-w -s -X 'github.com/nowsecure/nowsecure-ci/cmd/ns/version.version={{ .Version }}'"
1515
# name template for the binaries
1616
binary: >-
1717
ns_{{ .Os }}-{{ .Arch }}

flake.nix

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,13 @@
6161
typos && echo "0 issues."
6262
'';
6363
};
64+
test-release = pkgs.writeShellApplication {
65+
name = "test-release";
66+
runtimeInputs = [
67+
pkgs.goreleaser
68+
];
69+
text = "goreleaser release --snapshot --clean";
70+
};
6471
}
6572
);
6673

@@ -83,10 +90,12 @@
8390
pkgs.gotestsum
8491
pkgs.markdownlint-cli
8592
pkgs.gocover-cobertura
93+
pkgs.goreleaser
8694

8795
# Shell script helpers
8896
self.packages.${system}.checks
8997
self.packages.${system}.format
98+
self.packages.${system}.test-release
9099

91100
# Other
92101
pkgs.nixpkgs-fmt

0 commit comments

Comments
 (0)