Skip to content

golang.pm: List tags to generate using the generate tags

Marco Trevisan requested to merge 3v1n0/dh-golang:generate-tags into debian/sid

go generate by default will consider all the files that include the build directive

//go:build generate

But in the golang build system, if a directory only contains a go file with such build directive, then it's ignored.

To prevent this to happen, list the files with generate tag when launching go generate so that all the files that go generate would include are actually generated.

Merge request reports

Loading