traefik / yaegi

Yaegi is Another Elegant Go Interpreter
https://pkg.go.dev/github.com/traefik/yaegi
Apache License 2.0
6.82k stars 342 forks source link

unable to import zeebo/xxh3 #1570

Open jerrywoo96 opened 1 year ago

jerrywoo96 commented 1 year ago

The following program sample.go triggers an unexpected result

import (
    "github.com/zeebo/xxh3"
)

Expected result

// Running the plugin without errors.

Got

level=error msg="Plugins are disabled because an error has occurred." error="failed to import plugin code: import error: import \"github.com/zeebo/xxh3\" error: unable to find source related to: \"github.com/zeebo/xxh3\""

Yaegi Version

0.15.1

Additional Notes

https://pkg.go.dev/github.com/zeebo/xxh3@v1.0.2 https://github.com/zeebo/xxh3

I'm using xxh3 to hash responses to generate ETag headers.

jerrywoo96 commented 1 year ago

i've also added require github.com/zeebo/xxh3 v1.0.2 to the go.mod file.