Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Yaegi unable to find source related to: "gopkg.in/yaml.v3" error #926

Closed
darkweak opened this issue Oct 23, 2020 · 1 comment
Closed

Yaegi unable to find source related to: "gopkg.in/yaml.v3" error #926

darkweak opened this issue Oct 23, 2020 · 1 comment
Labels
area/core bug Something isn't working

Comments

@darkweak
Copy link

When I try to import gopkg.in/yaml.v3 dependency yaegi throws the error unable to find source related to: "gopkg.in/yaml.v3"
Even if I generate vendors, regenerate them or mod file.

failed to run with Yaegi: plugin: failed to import plugin code: 1:21: import "{PROJECT}/plugins/traefik" error: /tmp/pilot-gop903668899/src/{PROJECT}/plugins/traefik/main.go:6:2: import "{PROJECT}/configuration" error: /tmp/pilot-gop903668899/src/{PROJECT}/configuration/configuration.go:6:2: import "gopkg.in/yaml.v3" error: unable to find source related to: "gopkg.in/yaml.v3"
@mvertes
Copy link
Member

mvertes commented May 24, 2022

I retested in interactive mode in v0.12.0:

$ yaegi
> import "gopkg.in/yaml.v3"
: 0x14000032100

So at least the import works now.

@mvertes mvertes closed this as completed May 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/core bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants