rosa: 1.2.36 -> 1.2.38 (#308534)
* rosa: 1.2.36 -> 1.2.38 * disable tests requiring network access - e2e tests require network access - TestRhRegionCommand require network access
This commit is contained in:
parent
f7f09d3442
commit
5f3e8db691
|
@ -2,13 +2,13 @@
|
||||||
|
|
||||||
buildGoModule rec {
|
buildGoModule rec {
|
||||||
pname = "rosa";
|
pname = "rosa";
|
||||||
version = "1.2.36";
|
version = "1.2.38";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "openshift";
|
owner = "openshift";
|
||||||
repo = "rosa";
|
repo = "rosa";
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
hash = "sha256-jdLMQLbk446QJ+8+HjTCTjtlCuLlZZsLUBInRg4UMH0=";
|
hash = "sha256-eS9mK5iK/fXWMpgA/RF7wYybcJtPDW/pIWo9Iw0I+K8=";
|
||||||
};
|
};
|
||||||
vendorHash = null;
|
vendorHash = null;
|
||||||
|
|
||||||
|
@ -16,6 +16,18 @@ buildGoModule rec {
|
||||||
|
|
||||||
__darwinAllowLocalNetworking = true;
|
__darwinAllowLocalNetworking = true;
|
||||||
|
|
||||||
|
postPatch = ''
|
||||||
|
# e2e tests require network access
|
||||||
|
rm -r 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"
|
||||||
|
'';
|
||||||
|
|
||||||
nativeBuildInputs = [ installShellFiles ];
|
nativeBuildInputs = [ installShellFiles ];
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
installShellCompletion --cmd rosa \
|
installShellCompletion --cmd rosa \
|
||||||
|
|
Loading…
Reference in New Issue
Block a user