From a9522f4b5d539b99d89534e250ffce576111afa4 Mon Sep 17 00:00:00 2001 From: John Lago <750845+Lagoja@users.noreply.github.com> Date: Thu, 7 Nov 2024 20:42:41 -0800 Subject: [PATCH] fix flake version string issue --- flake.nix | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/flake.nix b/flake.nix index 69d21dd6437..5b69305eeaa 100644 --- a/flake.nix +++ b/flake.nix @@ -13,17 +13,19 @@ lastTag = "0.13.6"; - revision = if (self ? shortRev) - then "${self.shortRev}" - else "${self.dirtyShortRev or "dirty"}"; + revision = + if (self ? shortRev) + then "${self.shortRev}" + else "${self.dirtyShortRev or "dirty"}"; # Add the commit to the version string for flake builds - version = "${lastTag}-${revision}"; + version = "${lastTag}"; # Run `devbox run update-flake` to update the vendor-hash - vendorHash = if builtins.pathExists ./vendor-hash - then builtins.readFile ./vendor-hash - else ""; + vendorHash = + if builtins.pathExists ./vendor-hash + then builtins.readFile ./vendor-hash + else ""; buildGoModule = pkgs.buildGo123Module;