-
Notifications
You must be signed in to change notification settings - Fork 77
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
internal/abi/abi_arm64.h Not included when vendoring dependencies #31
Comments
I'm not familiar with vendoring, but would putting a dummy Go file in /CC @TotallyGamerJet |
https://github.com/goccy/go-graphviz/pull/37/files Hm, I see. Do we need the |
Before this change, the package `internal/abi` was ignored by `go mod vendor` as there was no Go file there. Then building purego failed as `internal/abi` didn't exist under the `vendor` directory. This change fixes this issue by adding a dummy Go file to `internal/abi` and adding an explicit import to it, but with a `dummy` build tag. I referred a change goccy/go-graphviz#37 for this hack. Updates #31
Before this change, the package `internal/abi` was ignored by `go mod vendor` as there was no Go file there. Then building purego failed as `internal/abi` didn't exist under the `vendor` directory. This change fixes this issue by adding a dummy Go file to `internal/abi` and adding an explicit import to it, but with a `dummy` build tag. I referred a change goccy/go-graphviz#37 for this hack. Updates #31
I've upated purego. I'll update Ebitengine and then close this issue. |
Closes #2036 Closes ebitengine/purego#31
Closes #2306 Closes ebitengine/purego#31
Until v2.4.2 is released, please try:
Thanks, |
Sorry for the late response! I really appreciate you looking into this and thanks for your help! |
I noticed this issue when upgrading Ebiten from 2.3.8 to 2.4.0, however this was the dependency throwing the error. So I hope this is the right place to report this.
Error:
# github.com/ebitengine/purego vendor/github.com/ebitengine/purego/sys_darwin_arm64.s:8: #include: open /Users/<redacted>/sdk/go1.19/pkg/include/internal/abi/abi_arm64.h: no such file or directory
Digging further I found that the folder
/internal/abi/
didn't exist in my vendored copy butstrings
andfakecgo
did. Which led me to this comment that mentions that there needs to be at least one .go file present in a directory in order for all the files to be included during vendoring. I made sure it wasn't a fluke by deleting the vendor folder and starting over but the results were consistent.There is a work around, I cloned the repo and manually copied it to the vendor folder and the issue resolved (until I vendor again)
The text was updated successfully, but these errors were encountered: