Conversation
|
We could use pact-go bin to download the library, and act as a runner wrapper over go test, which sets the env var to the shared library, wherever the user has installed it. the install and run could be wrapped so if we can find the shared library, it asks the user to install it This will remove the need for sudo we would also create arch specific golang packages for each arch/plat if poss (would that need seperate repos) |
users now required to set PACT_LD_LIBRARY_PATH env var with location of download pact ffi lib. It can exist anywhere on the filesystem
to automatically set PACT_LD_LIBRARY_PATH
|
Okay, so this is pretty neato now.
the config file in
Users can still use No special paths are required, and we don't need to code them directly into our source code, they don't need to be well known paths, for library loading on macos, with sip enabled, so no sudo required 🎉 The only reservation is the purego project is still in beta, but with everything passing in our suites, I think I would still go for it, for the simplified developer experience. |
|
This takes the approach
with no fallback to the existing cgo mechanism to avoid code complexity |
fixes #452