-
Notifications
You must be signed in to change notification settings - Fork 70
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
Vendoring with go mod vendor
leads to "fatal error: 'config.h' file not found"
#28
Comments
This is likely similar to go-gl/glfw#251. There needs to be at least one .go file in a directory for it to be considered a Go package and source files to be included by vendor. |
I am trying to solve this problem by writing the header content directly in the Go file ( cgo section ) . |
I've forked this repo and added |
@bogdanprodanj do you have cycles to submit the PR? |
I just submitted a #37, which seems to resolve this issue. |
Note: apologies if this issue has been reported before, or if there's a common solution to this problem -- it's the first time I've ever run into vendoring issues with a module including C source code so I'm still researching what's going on!
This could also be an issue with
go mod vendor
or my understanding of it.I'm on Mac OS X 10.14.6.
When I vendor in graphviz using
go mod vendor
, I get a missing C header error:I'm on graphviz 0.0.6:
Here's what gets vendored in -- none of the headers:
When I just
rm -r vendor
, this problem goes away and everything works fine. (Unfortunately, I may be forced to vendor :( )The text was updated successfully, but these errors were encountered: