On Fri, Jan 18, 2019 at 5:34 AM Jan B <janb.l...@gmail.com> wrote: > > Is there any way to access go's build cache? Specifically, i want to check if > the source files of my program have changed (i.e. it needs to be recompiled). > I've searched through the go tools but couldn't find anything that does this.
I don't think there is a way to directly access the build cache. And even if you could that wouldn't answer your question correctly, since if your source files changed to an earlier version, the earlier version might be in the build cache also. One approach you might be able to use, depending on what your ultimate goal is, would be to see if `go build -n` prints anything. Ian -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.