traefik / yaegi

Yaegi is Another Elegant Go Interpreter

Home Page:https://pkg.go.dev/github.com/traefik/yaegi

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

unable to use github.com/coreos/go-oidc/v3/oidc

zetaab opened this issue · comments

The following program sample.go triggers an unexpected result

package main

import (
	"fmt"

	"github.com/coreos/go-oidc/v3/oidc"
)

type config struct {
	provider *oidc.Provider
}

func main() {
	conf := config{}
	fmt.Printf("%+v\n", conf)
}

Expected result

% go run main.go
{provider:<nil>}

Got

% yaegi ./main.go 
run: ./main.go:6:2: import "github.com/coreos/go-oidc/v3/oidc" error: /go/src/github.com/myproject/myproject/vendor/github.com/coreos/go-oidc/v3/oidc/jwks.go:16:2: import "github.com/go-jose/go-jose/v3" error: /go/src/github.com/myproject/myproject/vendor/github.com/go-jose/go-jose/v3/asymmetric.go:33:2: import "github.com/go-jose/go-jose/v3/json" error: /go/src/github.com/myproject/myproject/vendor/github.com/go-jose/go-jose/v3/json/encode.go:650:48: cannot use type *json.encodeState as type io.Writer

Yaegi Version

0.15.1

Additional Notes

No response

Got stuck on the same one.. :/