artefactual-labs / bagit-gython

An experimental Go library that integrates Python's reliable BagIt implementation using an embedded modern Python interpreter.
https://pkg.go.dev/github.com/artefactual-labs/bagit-gython
Apache License 2.0
0 stars 0 forks source link

Assignment mismatch error importing bagit-gython #1

Closed djjuhasz closed 1 week ago

djjuhasz commented 1 week ago

I'm trying to import bagit-gython into https://github.com/artefactual-sdps/temporal-activities but my linter (golangci-lint) fails with an assigment mismatch error:

bagit/validate_bag_activity.go:7:8: could not import github.com/artefactual-labs/bagit-gython (-: # github.com/artefactual-labs/bagit-gython
../../../go/pkg/mod/github.com/artefactual-labs/bagit-gython@v0.0.0-20240419110812-33f9b7882bd9/bagit.go:57:9: assignment mismatch: 1 variable but b.ep.PythonCmd returns 2 values) (typecheck)
    bagit "github.com/artefactual-labs/bagit-gython"
          ^

Environment

djjuhasz commented 1 week ago

It looks like the github.com/kluctl/go-embed-python PythonCmd() signature changed between v0.0.0-3.12.2-20240224-2 (bagit-gython) and v0.0.0-3.12.3-20240415-1 (temporal-activities)