pact-go icon indicating copy to clipboard operation
pact-go copied to clipboard

v2: unable to determine current version of package libpact_ffi error on install

Open dabfleming opened this issue 3 years ago • 1 comments

https://github.com/pact-foundation/pact-go/blob/965f5352245dd97adda9de8581c9469132e322a5/installer/installer.go#L125

LibRegistry is never populated:

log.Printf("[DEBUG] LibRegistry: %#v\n", LibRegistry)
// Prints: [DEBUG] LibRegistry: map[string]installer.Versioner{}

Results in always getting this error.

dabfleming avatar Nov 15 '21 18:11 dabfleming

I had to delete /usr/local/lib/libpact_ffi.dylib manually and rerun pact-go -l DEBUG install to pick up the v0.1.0 change.

dabfleming avatar Nov 15 '21 18:11 dabfleming

This should be fixed now, as we store in a pact config directory the current known version, and we also print out what's being installed when it is.

mefellows avatar Mar 07 '23 11:03 mefellows