Skip to content

internal/abi: add a dummy Go file for go mod vendor#32

Merged
hajimehoshi merged 7 commits into
mainfrom
vendor
Sep 5, 2022
Merged

internal/abi: add a dummy Go file for go mod vendor#32
hajimehoshi merged 7 commits into
mainfrom
vendor

Conversation

@hajimehoshi
Copy link
Copy Markdown
Member

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
@hajimehoshi
Copy link
Copy Markdown
Member Author

@TotallyGamerJet Please take a look, thanks!

Copy link
Copy Markdown
Collaborator

@TotallyGamerJet TotallyGamerJet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the correct solution to this problem. LGTM! Thanks

@hajimehoshi hajimehoshi merged commit aeed57c into main Sep 5, 2022
@hajimehoshi hajimehoshi deleted the vendor branch September 5, 2022 07:56
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.

2 participants