Unverified Commit a3e7a150 authored by Weijia Wang's avatar Weijia Wang Committed by GitHub
Browse files

Merge pull request #254728 from r-ryantm/auto-update/deck

deck: 1.26.0 -> 1.27.0
parents 4d4ead7e 263890f1
Loading
Loading
Loading
Loading
+7 −7
Original line number Diff line number Diff line
{ buildGoModule, lib, installShellFiles, fetchFromGitHub }:
let
  short_hash = "63b9742";
in buildGoModule rec {

buildGoModule rec {
  pname = "deck";
  version = "1.26.0";
  version = "1.27.0";

  src = fetchFromGitHub {
    owner = "Kong";
    repo = "deck";
    rev = "v${version}";
    hash = "sha256-DxmIHJfvRZKsMyFllbfpriT4Ts9f7ha4aZcfVr/b9eA=";
    hash = "sha256-QP267H1vfsIo1EhV9vAWt03ewGufPHT8sZWcj/AHuxw=";
  };

  nativeBuildInputs = [ installShellFiles ];
@@ -18,10 +17,11 @@ in buildGoModule rec {

  ldflags = [
    "-s -w -X github.com/kong/deck/cmd.VERSION=${version}"
    "-X github.com/kong/deck/cmd.COMMIT=${short_hash}"
    "-X github.com/kong/deck/cmd.COMMIT=${src.rev}"
  ];

  vendorHash = "sha256-jhLZvusYpX5fW1NCmJtwE/p9/wTwzA2hbwt657VsZts=";
  proxyVendor = true; # darwin/linux hash mismatch
  vendorHash = "sha256-ikgD17+lnKpxCzrIkOXOq332X48qEdSWXIIRoq76fB4=";

  postInstall = ''
    installShellCompletion --cmd deck \