Hello! I’m having a difficult time with Golang 1.1...
# general
s
Hello! I’m having a difficult time with Golang 1.18 and pants 2.14. When running tests or packaging, I get a handful of errors stating
pack: open __pkg__.a: permission denied
. It appears for a couple of the dependencies I’m using (namely golang.org/x/sys/unix and github.com/cespare/xxhash/v2). My theory is there is a name collision or something between these dependencies and others, anyone have an idea for how to deal with this/get around it and/or if my intuition is wrong?
1
f
I recommend upgrading to Pants 2.15.0rc5
there has been further work on the Go backend in 2.15 and 2.16, so let's ensure no bug still exists with the latest versions
s
Great, I’ll attempt it really quick
Still happens
f
What about with 2.16.0.dev6?
s
Still doesn’t work :/
f
please open an issue then. with full debug log (via
-ldebug
) with exact versions of the dependencies at issue.
s
Do you happen to know which directory the pkg.a files are generated in? Perhaps it’s due to permissions on my end
h
You can run with
--keep-sandboxes=on_failure
and Pants will log the location of the sandbox dir the relevant process ran in
In fact you can poke around in it to see if anything stands out
s
I ran with keep sandboxes always and I didn’t see the loc printed in the trace, retrying now
I’ve determined it was a permissions issue with the generated files, sorry!
h
Cool, glad that worked out!