ocm: 0.1.73 -> 1.0.2 (#361805)

ocm-cli: 0.1.73 -> 1.0.2

authored by Jean-Francois Chevrette and committed by GitHub 2766b622 3122317c

+10 -8
+10 -8
pkgs/by-name/oc/ocm/package.nix
··· 1 - { lib, buildGoModule, fetchFromGitHub, installShellFiles, stdenv, testers, ocm }: 2 3 buildGoModule rec { 4 pname = "ocm"; 5 - version = "0.1.73"; 6 7 src = fetchFromGitHub { 8 owner = "openshift-online"; 9 repo = "ocm-cli"; 10 rev = "v${version}"; 11 - sha256 = "sha256-hcbCUzC+E7VHmqATw/1LQxdMLiFibgYiWrQHpm3jZLA="; 12 }; 13 14 - vendorHash = "sha256-NP5LLP27hn8p2gUVO/qpdu1Yp3t8iarUUKR/FjU0Qlc="; 15 16 # Strip the final binary. 17 ldflags = [ "-s" "-w" ]; ··· 23 ln -s $GOPATH/bin/ocm ocm 24 ''; 25 26 - # Tests fail in Darwin sandbox. 27 - doCheck = !stdenv.hostPlatform.isDarwin; 28 29 postInstall = '' 30 installShellCompletion --cmd ocm \ ··· 43 mainProgram = "ocm"; 44 license = licenses.asl20; 45 homepage = "https://github.com/openshift-online/ocm-cli"; 46 - maintainers = with maintainers; [ stehessel ]; 47 - platforms = platforms.all; 48 }; 49 }
··· 1 + { lib, buildGoModule, fetchFromGitHub, installShellFiles, testers, ocm }: 2 3 buildGoModule rec { 4 pname = "ocm"; 5 + version = "1.0.2"; 6 7 src = fetchFromGitHub { 8 owner = "openshift-online"; 9 repo = "ocm-cli"; 10 rev = "v${version}"; 11 + sha256 = "sha256-cKXC7+Hn+74ukHG7iN4QwIv9vuPXm8FKyaKPD62S5ck="; 12 }; 13 14 + vendorHash = "sha256-uj4xmNZViag+j4YavFjDvc/ClMBb99DhwlcKzvGWQ7c="; 15 16 # Strip the final binary. 17 ldflags = [ "-s" "-w" ]; ··· 23 ln -s $GOPATH/bin/ocm ocm 24 ''; 25 26 + checkFlags = [ 27 + # Disable integration tests which require networking and gnupg which has issues in the sandbox 28 + "-skip=^TestCLI$" 29 + ]; 30 + 31 32 postInstall = '' 33 installShellCompletion --cmd ocm \ ··· 46 mainProgram = "ocm"; 47 license = licenses.asl20; 48 homepage = "https://github.com/openshift-online/ocm-cli"; 49 + maintainers = with maintainers; [ stehessel jfchevrette ]; 50 }; 51 }