From 98dc97a14cdf8eca42ad8c38ac99e6b98af6ba66 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Mon, 21 Aug 2023 23:52:11 +0200 Subject: [PATCH] govulncheck: 1.0.0 -> 1.0.1 Diff: https://github.com/golang/vuln/compare/refs/tags/v1.0.0...v1.0.1 --- pkgs/tools/security/govulncheck/default.nix | 22 ++++++++++++++------- 1 file changed, 15 insertions(+), 7 deletions(-) diff --git a/pkgs/tools/security/govulncheck/default.nix b/pkgs/tools/security/govulncheck/default.nix index b3493c3a3098..61249d354df1 100644 --- a/pkgs/tools/security/govulncheck/default.nix +++ b/pkgs/tools/security/govulncheck/default.nix @@ -1,24 +1,32 @@ -{ lib, buildGoModule, fetchFromGitHub }: +{ lib +, buildGoModule +, fetchFromGitHub +}: buildGoModule rec { pname = "govulncheck"; - version = "1.0.0"; + version = "1.0.1"; src = fetchFromGitHub { owner = "golang"; repo = "vuln"; - rev = "v${version}"; - sha256 = "sha256-cewQ03dK/k3mXevE09M01Yox/3ZWP6IrG0H4QsZMzy8="; + rev = "refs/tags/v${version}"; + hash = "sha256-cewQ03dK/k3mXevE09M01Yox/3ZWP6IrG0H4QsZMzy8="; }; - vendorSha256 = "sha256-r9XshbgVA5rppJF46SFYPad344ZHMLWTHTnL6vbIFH8="; + vendorHash = "sha256-r9XshbgVA5rppJF46SFYPad344ZHMLWTHTnL6vbIFH8="; - subPackages = [ "cmd/govulncheck" ]; + subPackages = [ + "cmd/govulncheck" + ]; # Vendoring breaks tests doCheck = false; - ldflags = [ "-s" "-w" ]; + ldflags = [ + "-s" + "-w" + ]; meta = with lib; { homepage = "https://pkg.go.dev/golang.org/x/vuln/cmd/govulncheck";