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

fix: go mod vendor #37

Merged
merged 1 commit into from
Nov 11, 2020
Merged

fix: go mod vendor #37

merged 1 commit into from
Nov 11, 2020

Conversation

joelanford
Copy link
Contributor

Closes #28

Uses go-gl/glfw#280 as a guide to enable this project to be vendored into other projects with go mod vendor

@goccy
Copy link
Owner

goccy commented Nov 11, 2020

Very nice fix !!! Thanks !!!!

@goccy goccy merged commit 1f0a441 into goccy:master Nov 11, 2020
hajimehoshi added a commit to ebitengine/purego that referenced this pull request Sep 5, 2022
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
hajimehoshi added a commit to ebitengine/purego that referenced this pull request Sep 5, 2022
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
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

Successfully merging this pull request may close these issues.

Vendoring with go mod vendor leads to "fatal error: 'config.h' file not found"
3 participants