Unverified Commit 53910e3c authored by Azat Bahawi's avatar Azat Bahawi Committed by GitHub
Browse files

werf: 2.56.2 -> 2.62.2 (#496890)

parents da84d815 9570b7c4
Loading
Loading
Loading
Loading
+9 −13
Original line number Diff line number Diff line
@@ -10,29 +10,25 @@
}:
buildGoModule (finalAttrs: {
  pname = "werf";
  version = "2.56.2";
  version = "2.62.2";

  src = fetchFromGitHub {
    owner = "werf";
    repo = "werf";
    tag = "v${finalAttrs.version}";
    hash = "sha256-xf7S3hpJ/+ZmmBdGWOsyshF+FI5X9M3yOvjrxpNgy+Y=";
    hash = "sha256-DRztwFKP3G5NyonyHtEMmHLDYgd0GAomEv3Kk1ANDsk=";
  };

  proxyVendor = true;
  vendorHash = "sha256-YNcff8KwSWfiILBuSVS7BFokMgsErQ1AhrXJGrhztDM=";

  subPackages = [ "cmd/werf" ];

  nativeBuildInputs = [
    installShellFiles
    versionCheckHook
  ];
  vendorHash = "sha256-DLDwZEKFOgzFvPOwJ99h/a7QVRHGgRHmWFue1JvmRh8=";

  nativeBuildInputs = [ installShellFiles ];
  buildInputs =
    lib.optionals stdenv.hostPlatform.isLinux [ btrfs-progs ]
    ++ lib.optionals stdenv.hostPlatform.isGnu [ stdenv.cc.libc.static ];

  subPackages = [ "cmd/werf" ];

  env.CGO_ENABLED = if stdenv.hostPlatform.isLinux then 1 else 0;

  ldflags = [
@@ -62,7 +58,6 @@ buildGoModule (finalAttrs: {
  ];

  nativeCheckInputs = [ writableTmpDirAsHomeHook ];

  preCheck = ''
    # Test all packages.
    unset subPackages
@@ -72,7 +67,8 @@ buildGoModule (finalAttrs: {
      integration/suites \
      pkg/true_git/*_test.go \
      pkg/werf/exec/*_test.go \
      test/e2e
      test/e2e \
      test/legacy_e2e
  ''
  + lib.optionalString (finalAttrs.env.CGO_ENABLED == 0) ''
    # A workaround for osusergo.
@@ -80,7 +76,7 @@ buildGoModule (finalAttrs: {
  '';

  doInstallCheck = true;

  nativeInstallCheckInputs = [ versionCheckHook ];
  versionCheckProgramArg = "version";

  postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''