-
Notifications
You must be signed in to change notification settings - Fork 362
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
import failure for pkg #856
Comments
If you can edit the source file, you can insert a comment prior to the // yaegi:tags safe
import "github.com/rocketlaunchr/dataframe-go" More details at https://pkg.go.dev/github.com/containous/yaegi/interp#hdr-Custom_build_tags. Alternatively, you can pass build tags to $ yaegi -tags safe [...] |
There seems to be a more serious bug:
(I also tried just I ran this command: import "github.com/rocketlaunchr/dataframe-go" I got this massive error:
|
Thanks, this one needs to be investigated by us. Note that you should provide multiple tags in comma separated list as |
As your package is quite large and has many dependencies, it may be advantageous to wrap it in a pre-compiled package and build a custom interpreter. This would avoid all issues where yaegi fails to interpret some patterns, avoid all the interpreter overhead on your package, and be transparent for users. See Sorry this whole process is not fully yet documented, we need to write a complete example on that. |
does that mean it can't work natively and the custom wrapper technique is the only way? |
I was hoping to fork this project and make it work seamelessly with my https://github.com/rocketlaunchr/dataframe-go package and also igo (https://github.com/rocketlaunchr/igo) |
Can the custom wrapper technique be used to integrate |
Hopefully it should be possible to run your package natively in yaegi, once the issues resolved. Forking this project to provide access to pre-compiled dataframe-go (as we do ourselves when we provide access to the Go stdlib) still makes sense in your case.
|
|
You have to study how |
The dataframe package is designed to be safe to run in environments that prohibit "unsafe" package.
It uses a built tag called
safe
. How can I import and specify the build tag?The text was updated successfully, but these errors were encountered: