<#21560 Status of golang support? Seems very slow ...
# github-notifications
c
#21560 Status of golang support? Seems very slow overall New discussion created by HenrikPoulsen I saw in the docs that golang support is in the beta phase, however it doesn't really address how usable it is. I tried it out on a monorepo I have with 10 or so local modules (~80 dependencies and ~200 indirect dependencies, aka pretty small as monorepos go) and it seems very rough around the edges for sure. The main issue/deal breaker imo is that in my case it takes 20+ minutes to just download and analyze and build all the modules. It also ends up taking ~90% of the available system memory (of which I have 64GB total) while it's running Why does it take this long and why does it not, seemingly, use the GOPATH cache for this which already has everything downloaded? Is this expected and by design? Is there a config issue on my end? If so how do you debug that? By comparison
go test ./...
after doing a
go clean --modcache
it takes ~10 seconds to pull all the packages. On subsequent runs it takes no measurable time before it starts running the tests. For pantsbuild it takes 60+ seconds on a rerun before it starts running any tests, since it seems to be rechecking all the dependencies again, quite slowly. Is this the expected behavior or is there some other issue at play here for my specific setup? pantsbuild/pants