[go-nuts] Re: Reproducible builds and rewriting buildid in binary

2018-09-16 Thread Ivan Daniluk
Wrong link to the related Go's issue. It's https://github.com/golang/go/issues/16860. On Sunday, September 16, 2018 at 2:49:19 PM UTC+3, Ivan Daniluk wrote: > > I needed to find a way to create reproducible builds, regardless of the > dev environment user uses. Lucki

[go-nuts] Reproducible builds and rewriting buildid in binary

2018-09-16 Thread Ivan Daniluk
I needed to find a way to create reproducible builds, regardless of the dev environment user uses. Luckily, Go gives almost everything needed for that out-of-the-box, and there is a great blog post by Filippo on the topic: https://blog.filippo.io/reproducing-go-binaries-byte-by-byte. If we have

[go-nuts] How to find all func X calls using AST parser/types?

2017-06-09 Thread Ivan Daniluk
Hi, let's say you want to find all calls to the specific function (strconv.Atoi, for example) using AST. It's kinda easy to do using Info.Uses, but how to go from Object in Uses to the whole expression with call? Let's say, we have a code: package main import "strconv" var fn = strconv.Ato