Hey folks, I am using pact-go and getting this err...
# general
o
Hey folks, I am using pact-go and getting this error for gprc test. I am using m1 pro with Sonoma 14.3.1
Copy code
2024-03-12T08:09:40.347966Z ERROR ThreadId(01) pact_ffi::plugins: Could not load plugin - Was not able to start plugin process for '/Users/mycomputer/.pact/plugins/protobuf-0.3.13/pact-protobuf-plugin' - No such file or directory (os error 2)
2024/03/12 11:09:40 [ERROR] failed to add plugin: the plugin could not be started
--- FAIL: TestGoogleTripIdClient (0.54s)
panic: the plugin could not be started [recovered]
        panic: the plugin could not be started

goroutine 23 [running]:
testing.tRunner.func1.2({0x100948520, 0x14000110a30})
        /usr/local/go/src/testing/testing.go:1545 +0x1c8
testing.tRunner.func1()
        /usr/local/go/src/testing/testing.go:1548 +0x360
panic({0x100948520?, 0x14000110a30?})
        /usr/local/go/src/runtime/panic.go:914 +0x218
<http://github.com/pact-foundation/pact-go/v2/message/v4.(*UnconfiguredSynchronousMessageBuilder).UsingPlugin(0x14000110dd0|github.com/pact-foundation/pact-go/v2/message/v4.(*UnconfiguredSynchronousMessageBuilder).UsingPlugin(0x14000110dd0>, {{0x1007d823e?, 0x20?}, {0x0?, 0x0?}})
        /Users/mycomputer/go/pkg/mod/github.com/pact-foundation/pact-go/v2@v2.0.4/message/v4/synchronous_message.go:69 +0x118
I have cheked the pluging installation path and found
pact-protobuf-plugin-osx-aarch64.gz
file. When try to unzip folder with gunzip I am getting the following error
gunzip: pact-protobuf-plugin-osx-aarch64.gz: unexpected end of file
error Do you have any idea of why I did not have proper pact-protopuf-plugin installation?
m
Did you manually install the plugin or was that via the CLI or something else?
I just manually downloaded,
gunzip
-d,
chmod
-ed and ran the thing locally.
The CLI seems to work ok also:
Copy code
āžœ pact-plugin-cli install protobuf                                                                                                                                                                                                       Installing plugin protobuf version 0.3.13
Downloaded <https://github.com/pactflow/pact-protobuf-plugin/releases/download/v-0.3.13/pact-protobuf-plugin-osx-aarch64.gz> to /Users/matthew.fellows/.pact/plugins/protobuf-0.3.13/pact-protobuf-plugin-osx-aarch64.gz
  [00:00:00] [###########################################################################################################################################################################################################################] 7.18 MiB/7.18 MiB (12.83 MiB/s, 0s)
Downloaded <https://github.com/pactflow/pact-protobuf-plugin/releases/download/v-0.3.13/pact-protobuf-plugin-osx-aarch64.gz.sha256> to /Users/matthew.fellows/.pact/plugins/protobuf-0.3.13/pact-protobuf-plugin-osx-aarch64.gz.sha256
  [00:00:00] [###################################################################################################################################################################################################################################] 119B/119B (72.32 KiB/s, 0s)Installed plugin protobuf version 0.3.13 OK
āžœ  Downloads ~/.pact/plugins/protobuf-0.3.13/pact-protobuf-plugin                                                                                                                                                                                   {"port":56586, "serverKey":"5d9e0f87-361c-4361-a476-f5c07404d3ae"