Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Several functions and methods broken when built with go build -trimpath #27

Open
ChrisHines opened this issue Jan 31, 2021 · 0 comments
Labels

Comments

@ChrisHines
Copy link
Member

$ go test -trimpath
--- FAIL: TestCallStackString (0.00s)
    stack_test.go:343:
         got []
        want [stack_test.go:362 stack_test.go:335]
--- FAIL: TestCallStackMarshalText (0.00s)
    stack_test.go:357:
         got [91 93]
        want [91 115 116 97 99 107 95 116 101 115 116 46 103 111 58 51 54 50 32 115 116 97 99 107 95 116 101 115 116 46 103 111 58 51 52 56 93]        
--- FAIL: TestTrimRuntime (0.00s)
    stack_test.go:403: got len(trace) == 0, want 1, goroot: "go", trace: []
--- FAIL: TestCallFormat (0.00s)
    stack_test.go:259: fmt.Sprintf("%+s", Call(func)) = github.com/go-stack/stack_test/stack_test.go, want github.com/go-stack/stack/stack_test.go     
    stack_test.go:259: fmt.Sprintf("%+v", Call(func)) = github.com/go-stack/stack_test/stack_test.go:209, want github.com/go-stack/stack/stack_test.go:209
    stack_test.go:259: fmt.Sprintf("%+s", Call(meth)) = github.com/go-stack/stack_test/stack_test.go, want github.com/go-stack/stack/stack_test.go     
    stack_test.go:259: fmt.Sprintf("%+v", Call(meth)) = github.com/go-stack/stack_test/stack_test.go:200, want github.com/go-stack/stack/stack_test.go:200
--- FAIL: Example_callFormat (0.00s)
got:
github.com/go-stack/stack_test/format_test.go
format_test.go:13   Example_callFormat()
want:
github.com/go-stack/stack/format_test.go
format_test.go:13   Example_callFormat()
FAIL
exit status 1
FAIL    github.com/go-stack/stack       0.200s
@ChrisHines ChrisHines added the bug label Jan 31, 2021
@ChrisHines ChrisHines changed the title CallStack.TrimRuntime broken when built with go build -trimpath Several functions and methods broken when built with go build -trimpath Jan 31, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant