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) Force go mod vendor to copy the packaged/ directory. #197

Merged
merged 3 commits into from
Feb 11, 2021

Conversation

Hywan
Copy link
Contributor

@Hywan Hywan commented Feb 11, 2021

Fix #196.

As explained in golang/go#26366, go mod vendor is acting unexpectely. If a directory doesn't contain a .go
file, then it's not copied.

This patch fixes that. Or try to.

It's not tested on the CI because it's not that easy. We would need to create a new Go project, requiring wasmer-go, go mod vendor, then having small test inside this project that uses wasmer-go. If everything works correctly, then it's good.

For the moment, the patch will be tested by @cohix!

As explained in golang/go#26366, `go mod
vendor` is acting unexpectely. If a directory doesn't contain a `.go`
file, then it's not copied.

This patch fixes that.
@Hywan Hywan self-assigned this Feb 11, 2021
@Hywan Hywan added the 🐞 bug Something isn't working label Feb 11, 2021
@Hywan
Copy link
Contributor Author

Hywan commented Feb 11, 2021

bors try

bors bot added a commit that referenced this pull request Feb 11, 2021
@bors
Copy link
Contributor

bors bot commented Feb 11, 2021

@cohix
Copy link

cohix commented Feb 11, 2021

Can confirm this allows you to vendor wasmer-go properly 👍🏼

@Hywan
Copy link
Contributor Author

Hywan commented Feb 11, 2021

Thanks!

@Hywan
Copy link
Contributor Author

Hywan commented Feb 11, 2021

bors try

bors bot added a commit that referenced this pull request Feb 11, 2021
@bors
Copy link
Contributor

bors bot commented Feb 11, 2021

@Hywan
Copy link
Contributor Author

Hywan commented Feb 11, 2021

bors r+

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐞 bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

How to install
3 participants