Skip to content

"ignore" build tag is special in module mode #83

Open
@segevfiner

Description

See golang/go#29598

The README shows using an "assets_generate.go" with the "ignore" build tag, but that is ignored for the purposes of modules which will make it not pin the version of vfsgen if there isn't another file importing it.

Unrelated to this I had trouble getting this to work with modules, the importPathToDir trick doesn't seem to work in modules mode. So I had to move the go:generate comment to the main module and use the Filename options to vfsgen to get it to write the file to the right place. This package could really use better/updated docs.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions