From 5d9950d0a9e22656d1aae10c017a4cb819af9509 Mon Sep 17 00:00:00 2001 From: David Dworken Date: Sun, 17 Apr 2022 11:51:29 -0700 Subject: [PATCH] Fix goarch for m1 + fix boolean conditions --- .slsa-goreleaser-darwin-arm64.yml | 2 +- client/client_test.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.slsa-goreleaser-darwin-arm64.yml b/.slsa-goreleaser-darwin-arm64.yml index 5d7db99..0b0e5ad 100644 --- a/.slsa-goreleaser-darwin-arm64.yml +++ b/.slsa-goreleaser-darwin-arm64.yml @@ -4,7 +4,7 @@ flags: - -trimpath goos: darwin -goarch: arm +goarch: arm64 binary: hishtory-{{ .OS }}-{{ .Arch }} diff --git a/client/client_test.go b/client/client_test.go index 84d474d..f52611d 100644 --- a/client/client_test.go +++ b/client/client_test.go @@ -365,7 +365,7 @@ hishtory disable`) // Query based on after: and cwd: // TODO: This fails on macos for some reason - if runtime.GOOS == "darwin" && os.Getenv("GITHUB_ACTIONS") != "" { + if !(runtime.GOOS == "darwin" && os.Getenv("GITHUB_ACTIONS") != "") { out = hishtoryQuery(t, `after:1980-07-02 cwd:/tmp`) if strings.Count(out, "\n") != 3 { t.Fatalf("hishtory query has the wrong number of lines=%d, out=%#v", strings.Count(out, "\n"), out)