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 vendoring of package using go mod vendor #80

Merged
merged 1 commit into from
Jul 30, 2020

Conversation

nwidger
Copy link

@nwidger nwidger commented Jul 22, 2020

A directory with only C files will not be vendored by go mod vendor,
see this issue: golang/go#26366,
specifically, Russ Cox's response
golang/go#26366 (comment).

Because of this, when vendoring github.com/aarzilli/golua with go mod
vendor, the C header files under github.com/aarzilli/golua/lua/lua are
not vendored. This commits adds a workaround to this issue by adding
dummy Go files which makes go mod behave correctly. This workaround
was based on a similar one found here:
crawshaw/sqlite#88.

A directory with only C files will not be vendored by go mod vendor,
see this issue: golang/go#26366,
specifically, Russ Cox's response
golang/go#26366 (comment).

Because of this, when vendoring github.com/aarzilli/golua with go mod
vendor, the C header files under github.com/aarzilli/golua/lua/lua are
not vendored.  This commits adds a workaround to this issue by adding
dummy Go files which makes go mod behave correctly.  This workaround
was based on a similar one found here:
crawshaw/sqlite#88.
@aarzilli aarzilli merged commit 703cd57 into aarzilli:master Jul 30, 2020
@aarzilli
Copy link
Owner

Thank you.

@nwidger
Copy link
Author

nwidger commented Jul 30, 2020

Thank you!

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.

3 participants