Skip to content

Commit 595dd98

Browse files
committed
fix flake version string issue
1 parent c0331c7 commit 595dd98

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

flake.nix

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,17 +13,19 @@
1313

1414
lastTag = "0.13.6";
1515

16-
revision = if (self ? shortRev)
17-
then "${self.shortRev}"
18-
else "${self.dirtyShortRev or "dirty"}";
16+
revision =
17+
if (self ? shortRev)
18+
then "${self.shortRev}"
19+
else "${self.dirtyShortRev or "dirty"}";
1920

2021
# Add the commit to the version string for flake builds
21-
version = "${lastTag}-${revision}";
22+
version = "${lastTag}";
2223

2324
# Run `devbox run update-flake` to update the vendor-hash
24-
vendorHash = if builtins.pathExists ./vendor-hash
25-
then builtins.readFile ./vendor-hash
26-
else "";
25+
vendorHash =
26+
if builtins.pathExists ./vendor-hash
27+
then builtins.readFile ./vendor-hash
28+
else "";
2729

2830
buildGoModule = pkgs.buildGo123Module;
2931

0 commit comments

Comments
 (0)