ttps://github.com/cheekybits/genny //go:build (x && y) || z // +build x,y z package buildtags import "fmt" func intPrint(t int) { fmt.Println(t) } 2022/10/15 01:45:29 EXPECTED: // This file was automatically generated by genny. // Any changes will be lost if this file is regenerated. // see https://github.com/cheekybits/genny // +build x,y z // +build genny package buildtags import "fmt" func stringPrint(t string) { fmt.Println(t) } 2022/10/15 01:45:29 ACTUAL: // This file was automatically generated by genny. // Any changes will be lost if this file is regenerated. // see https://github.com/cheekybits/genny //go:build ((x && y) || z) && genny // +build x,y z // +build genny package buildtags import "fmt" func stringPrint(t string) { fmt.Println(t) } --- FAIL: TestParse (0.08s) parse_test.go:148: Error Trace: /builddir/build/BUILD/genny-3e22f1a88ff23bad753790c156bb20565820d747/_build/src/github.com/cheekybits/genny/parse/parse_test.go:148 Error: Not equal: expected: "// This file was automatically generated by genny.\n// Any changes will be lost if this file is regenerated.\n// see https://github.com/cheekybits/genny\n\n//go:build (x && y) || z\n// +build x,y z\n\npackage buildtags\n\nimport \"fmt\"\n\nfunc intPrint(t int) {\n\tfmt.Println(t)\n}\n" actual : "// This file was automatically generated by genny.\n// Any changes will be lost if this file is regenerated.\n// see https://github.com/cheekybits/genny\n\n// +build x,y z\n\npackage buildtags\n\nimport \"fmt\"\n\nfunc intPrint(t int) {\n\tfmt.Println(t)\n}\n" Diff: --- Expected +++ Actual @@ -4,3 +4,2 @@ -//go:build (x && y) || z // +build x,y z Test: TestParse Messages: Parse didn't generate the expected output. parse_test.go:148: Error Trace: /builddir/build/BUILD/genny-3e22f1a88ff23bad753790c156bb20565820d747/_build/src/github.com/cheekybits/genny/parse/parse_test.go:148 Error: Not equal: expected: "// This file was automatically generated by genny.\n// Any changes will be lost if this file is regenerated.\n// see https://github.com/cheekybits/genny\n\n//go:build ((x && y) || z) && genny\n// +build x,y z\n// +build genny\n\npackage buildtags\n\nimport \"fmt\"\n\nfunc stringPrint(t string) {\n\tfmt.Println(t)\n}\n" actual : "// This file was automatically generated by genny.\n// Any changes will be lost if this file is regenerated.\n// see https://github.com/cheekybits/genny\n\n// +build x,y z\n// +build genny\n\npackage buildtags\n\nimport \"fmt\"\n\nfunc stringPrint(t string) {\n\tfmt.Println(t)\n}\n" Diff: --- Expected +++ Actual @@ -4,3 +4,2 @@ -//go:build ((x && y) || z) && genny // +build x,y z Test: TestParse Messages: Parse didn't generate the expected output. FAIL exit status 1 FAIL github.com/cheekybits/genny/parse 0.133s error: Bad exit status from /var/tmp/rpm-tmp.u1vTo0 (%check) Bad exit status from /var/tmp/rpm-tmp.u1vTo0 (%check) RPM build errors: Child return code was: 1 EXCEPTION: [Error()] Traceback (most recent call last): File "/usr/lib/python3.9/site-packages/mockbuild/trace_decorator.py", line 93, in trace result = func(*args, **kw) File "/usr/lib/python3.9/site-packages/mockbuild/util.py", line 600, in do_with_status raise exception.Error("Command failed: \n # %s\n%s" % (command, output), child.returncode) mockbuild.exception.Error: Command failed: # bash --login -c /usr/bin/rpmbuild -bb --target riscv64 --nodeps /builddir/build/SPECS/golang-github-cheekybits-genny.spec