How to use a plugin with go dependencies

Hello,

I am quite new to golang and had to develop a simple traefik plugin that sets a Header from a jwt claim.
I am using github.com/golang-jwt/jwt for that.

My problem is that when I launch traefik using the docker image and mounting /plugins-local/src I receive the following error.

import "GitHub - golang-jwt/jwt: Community maintained clone of https://github.com/dgrijalva/jwt-go" error: unable to find source related to: "GitHub - golang-jwt/jwt: Community maintained clone of https://github.com/dgrijalva/jwt-go"

I found in yaegi#656 that yaegi does not support yet dependencies.

Is there a way to specify the GOPATH? so that I could do some go get in my image or mount a go env in the traefik image.

Thanks for any hint or help.