Closed bitmold closed 1 year ago
Goddamnit! Why are compilers doing that? Thanks for pointing it out.
However, I can still see some absolute paths in the dependency listing:
dep git.torproject.org/pluggable-transports/snowflake.git/v2 v2.5.1
=> /Users/<username>/workspace/gp/IPtProxy/snowflake (devel)
I'll modify the build script, so everything is run in a temp dir. Please review and improve!
Uuups. Sorry. Just recognized, this is a PR, not an issue. Anyway, check out the referenced commit!
I wonder if you even needed to do that - Are those paths in the dependency graph part of the binary?
Either way i have no idea why that feature would be on by default in a compiler - ridiculous
That piece I mention earlier was actually copied from the binary. At least for Apple compilations, that's what happens.
Just added this to OrbotLib, when you use
go build
(orgomobile bind
) the binary contains full filepaths which you probably don't want (might leak information about the setup of your development machine)For free it also produces a slightly smaller binary with no performance tradeoffs (in my case ~30KB)