Fix goarch for m1 + fix boolean conditions

This commit is contained in:
David Dworken 2022-04-17 11:51:29 -07:00
parent 9b07dc719d
commit 5d9950d0a9
2 changed files with 2 additions and 2 deletions

View File

@ -4,7 +4,7 @@ flags:
- -trimpath
goos: darwin
goarch: arm
goarch: arm64
binary: hishtory-{{ .OS }}-{{ .Arch }}

View File

@ -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)