Merge pull request #246449 from amarshall/temporal-cli-test-fix-rosetta

temporal-cli: Disable tests on x86_64-darwin due to Rosetta 2
This commit is contained in:
Weijia Wang 2023-09-05 21:55:07 +02:00 committed by GitHub
commit 62d3a9b769
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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)
'';