-
Notifications
You must be signed in to change notification settings - Fork 7
Open
Description
Re: go build -trimpath
https://golang.org/doc/go1.13#go-command
This flag reduces the size of the binary and "improves privacy" by stripping the machine-specific paths. However, stripping path information causes the AST traversal required by OpenRPC to fail because runtime.FileLine
is unable to provide an absolute path, resulting in file not found
errors.
So far, my thinking is that it can be worked around by creating basically an environment variable that etclabscore/go-openrpc-reflect would fall back to in case its AST steps error with "file not found." I'm not sure if there's a way to corroborate that failure at build time with a check against the go build
flags, but would be nice.
Metadata
Metadata
Assignees
Labels
No labels