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

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

Open
zetaab opened this issue Sep 3, 2023 · 1 comment
Open

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

zetaab opened this issue Sep 3, 2023 · 1 comment

Comments

@zetaab
Copy link

zetaab commented Sep 3, 2023

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

gdarmont added a commit to gdarmont/traefik-cloudflare-access-plugin that referenced this issue Jan 9, 2024
gdarmont added a commit to gdarmont/go-jose that referenced this issue Jan 9, 2024
gdarmont added a commit to gdarmont/go-oidc that referenced this issue Jan 9, 2024
@sevensolutions
Copy link

Got stuck on the same one.. :/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants