Matt (pactflow.io / pact-js / pact-go)
Hazem Borham
08/25/2022, 9:53 PMIf I can get a reliable big report that would help.
Matt (pactflow.io / pact-js / pact-go)
pact go install
command returns with verbose enabled (try removing the ~/.pact
dir and any existing lib)
• Try also a file /use/local/lib/libpact_ffi.dylib
Hazem Borham
08/25/2022, 11:21 PM2022/08/25 16:18:11 [ERROR] Your Pact library installation is out of date and we were unable to download a newer one for you: open /Users/me/.pact/pact-go.yml: permission denied
curious if this line s/b 0755
instead. i dont think this relates to the underlying problem tho. just an annoying error insteadMatt (pactflow.io / pact-js / pact-go)
Matt (pactflow.io / pact-js / pact-go)
Hazem Borham
08/26/2022, 12:12 AM####
go env
GO111MODULE="on"
GOARCH="arm64"
GOBIN=""
GOCACHE="/Users/dev/Library/Caches/go-build"
GOENV="/Users/dev/Library/Application Support/go/env"
GOEXE=""
GOEXPERIMENT=""
GOFLAGS=""
GOHOSTARCH="arm64"
GOHOSTOS="darwin"
GOINSECURE=""
GOMODCACHE="/Users/dev/go/pkg/mod"
GONOPROXY="<http://bitbucket.org/dev/*,bitbucket.org/dev/*export|bitbucket.org/dev/*,bitbucket.org/dev/*export>"
GONOSUMDB="<http://bitbucket.org/acme/*,bitbucket.org/dev/*export|bitbucket.org/acme/*,bitbucket.org/dev/*export>"
GOOS="darwin"
GOPATH="/Users/dev/go"
GOPRIVATE="<http://bitbucket.org/acme/*,bitbucket.org/dev/*export|bitbucket.org/acme/*,bitbucket.org/dev/*export>"
GOPROXY="<https://proxy.golang.org>,direct"
GOROOT="/opt/homebrew/Cellar/go@1.17/1.17.11/libexec"
GOSUMDB="<http://sum.golang.org|sum.golang.org>"
GOTMPDIR=""
GOTOOLDIR="/opt/homebrew/Cellar/go@1.17/1.17.11/libexec/pkg/tool/darwin_arm64"
GOVCS=""
GOVERSION="go1.17.11"
GCCGO="gccgo"
AR="ar"
CC="clang"
CXX="clang++"
CGO_ENABLED="1"
GOMOD="/Users/dev/code/fun-engine/go.mod"
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -arch arm64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/9d/j7s32bkx70j85cchpy1fvdvc0000gn/T/go-build945175549=/tmp/go-build -gno-record-gcc-switches -fno-common"
####
sudo file /usr/local/lib/libpact_ffi.dylib
/usr/local/lib/libpact_ffi.dylib: Mach-O 64-bit dynamically linked shared library arm64
Hazem Borham
08/26/2022, 12:13 AMrm -rf ~/.pact && pact-go -v -l DEBUG install
Matt (pactflow.io / pact-js / pact-go)
-f
flag I think to force the reinstallHazem Borham
08/26/2022, 5:20 PMrm -rf ~/.pact && pact-go -v -l DEBUG install -f
2022/08/26 09:59:16 [INFO] downloading library from <https://github.com/pact-foundation/pact-reference/releases/download/libpact_ffi-v0.3.8/libpact_ffi-osx-aarch64-apple-darwin.dylib.gz> to /usr/local/lib/libpact_ffi.dylib
2022/08/26 09:59:17 [ERROR] Your Pact library installation is out of date and we were unable to download a newer one for you: open /usr/local/lib/libpact_ffi.dylib: permission denied
dylib file info
ls -l /usr/local/lib/libpact_ffi.dylib
-rw------- 1 root wheel 19531936 Aug 25 10:39 /usr/local/lib/libpact_ffi.dylib
and
stat -f %A /usr/local/lib/libpact_ffi.dylib
600
my none m1 mac is 622
Matt (pactflow.io / pact-js / pact-go)
/usr/local/lib/libpact_ffi.dylib
is root - /usr/local/lib
is editable by me on my M1 and I’m positive I haven’t changed those perms from the default.
Did you run the install with sudo
or manually drop the file there?Matt (pactflow.io / pact-js / pact-go)
Matt (pactflow.io / pact-js / pact-go)
file
on the dylib so I could see what the architecture etc. was, but I think it won’t be too helpful until we’ve removed the existing file and reliably can get pact-go to install it for youHazem Borham
08/29/2022, 5:12 PMsudo
, they have since tried using that as wellHazem Borham
08/29/2022, 5:12 PMHazem Borham
08/29/2022, 5:14 PMcan't open file, errno=13 file '/usr/local/lib/libpact_ffi.dylib' for architecture arm64
Hazem Borham
08/29/2022, 5:14 PM