rosa: 1.2.46 -> 1.2.48 (#359440)

rosa: rosa: 1.2.46 -> 1.2.48
This commit is contained in:
Jean-Francois Chevrette
2024-12-04 22:19:42 -05:00
committed by GitHub
parent b800933dce
commit c78ef18e9c
+15 -13
View File
@@ -1,14 +1,14 @@
{ lib, buildGoModule, fetchFromGitHub, installShellFiles, testers, rosa, nix-update-script }:
{ stdenv, lib, buildGoModule, fetchFromGitHub, installShellFiles, testers, rosa, nix-update-script }:
buildGoModule rec {
pname = "rosa";
version = "1.2.46";
version = "1.2.48";
src = fetchFromGitHub {
owner = "openshift";
repo = "rosa";
rev = "v${version}";
hash = "sha256-XRoHapuH0MJNrtu+Rk/yxJqeqjNIbdGYqDB84q05rdA=";
hash = "sha256-qJKzJrCZKhaqoRxloTUqaRsR4/X/hoMxmDQCTNccTqk=";
};
vendorHash = null;
@@ -16,17 +16,19 @@ buildGoModule rec {
__darwinAllowLocalNetworking = true;
postPatch = ''
# e2e tests require network access
rm -r tests/e2e
'';
# skip e2e tests package
excludedPackages = [ "tests/e2e" ];
preCheck = ''
# Workaround for cmd/list/rhRegion/cmd_test.go:39
# Failed to get OCM regions: Can't retrieve shards: Get "https://api.stage.openshift.com/static/ocm-shards.json": dial tcp: lookup api.stage.openshift.com on [::1]:53: read udp [::1]:55793->[::1]:53: read: connection refused
substituteInPlace "cmd/list/rhRegion/cmd_test.go" \
--replace-fail "TestRhRegionCommand" "SkipRhRegionCommand"
'';
# skip tests that require network access
checkFlags =
let
skippedTests = [
"TestCluster"
"TestRhRegionCommand"
]
++ lib.optionals stdenv.hostPlatform.isDarwin [ "TestCache" ];
in
[ "-skip=^${lib.concatStringsSep "$|^" skippedTests}$" ];
nativeBuildInputs = [ installShellFiles ];
postInstall = ''