temporal-cli: Disable tests on x86_64-darwin due to Rosetta 2

They succeed for me (with multiple runs) on x86_64-darwin native (no
Rosetta 2). Afaik, Hydra performs x86_64-darwin builds on Rosetta 2 on
aarch64-darwin. I do not have the hardware to reproduce this (and it
could be a build issue), so let’s disable the tests for now and go from
there.
This commit is contained in:
Andrew Marshall 2023-07-31 18:34:02 -04:00
parent de72df3675
commit 01b07afeae

View File

@ -1,4 +1,4 @@
{ lib, fetchFromGitHub, buildGoModule, installShellFiles, symlinkJoin }:
{ lib, fetchFromGitHub, buildGoModule, installShellFiles, symlinkJoin, stdenv }:
let
metaCommon = with lib; {
@ -40,6 +40,9 @@ let
"-X github.com/temporalio/cli/headers.Version=${version}"
];
# Tests fail with x86 on macOS Rosetta 2
doCheck = !(stdenv.isDarwin && stdenv.hostPlatform.isx86_64);
preCheck = ''
export HOME=$(mktemp -d)
'';