You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
Re:
go build -trimpath
https://golang.org/doc/go1.13#go-commandThis 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 infile 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.The text was updated successfully, but these errors were encountered: