Merge pull request #178149 from stehessel/ocm-0.1.63

ocm: 0.1.62 -> 0.1.63
main
Mario Rodas 2 years ago committed by GitHub
commit 1c321beed4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 14
      pkgs/applications/networking/cluster/ocm/default.nix

@ -1,23 +1,29 @@
{ lib, buildGoModule, fetchFromGitHub, testers, ocm }:
{ lib, buildGoModule, fetchFromGitHub, stdenv, testers, ocm }:
buildGoModule rec {
pname = "ocm";
version = "0.1.62";
version = "0.1.63";
src = fetchFromGitHub {
owner = "openshift-online";
repo = "ocm-cli";
rev = "v${version}";
sha256 = "0kv0zcx6wdlyid37ygzg05xyyk77ybd2qcdgbswjv6crcjh1xdrd";
sha256 = "sha256-wBKW2WS1+JmWOFCArmrlVfUTEqFYF7aq1OBrUo7e4ac=";
};
vendorSha256 = "sha256-nXUrbF9mcHy8G7c+ktQixBmmf6x066gpuaZ0eUsJQwc=";
vendorSha256 = "sha256-LyQ/F+E0y1gQtpGSyPEB2z2ImorA7mjY3QjrRORakIo=";
# Strip the final binary.
ldflags = [ "-s" "-w" ];
# Tests expect the binary to be located in the root directory.
preCheck = ''
ln -s $GOPATH/bin/ocm ocm
'';
# Tests fail in Darwin sandbox.
doCheck = !stdenv.isDarwin;
passthru.tests.version = testers.testVersion {
package = ocm;
command = "ocm version";

Loading…
Cancel
Save