Dear pkg-go maintainers,
I bumped into a trouble while packaging
The library is fairly simple, however the file marshal_test.go 
contains this line:
This is a circulare dependency, since containerd/typeurl is a depency of
of containerd/containerd, but requires containerd/containerd for this test.
This breaks dh-make-golang with this error:
2018/02/13 18:29:20 Downloading "github.com/containerd/typeurl/..."
go get: 82.03 MiBpackage github.com/containerd/typeurl
imports github.com/containerd/containerd/typeurl: cannot find
package "github.com/containerd/containerd/typeurl" in any of:
2018/02/13 18:29:44 Could not create a tarball of the upstream source:
exit status 1
The fact that it breaks dh-make-dolang is not the blocker here, as I can
workaround and create the packaging files manually. However, what should
I do with this `marshal_test.go` file ? Should I exclude it from the
package ? Or should I patch it ?
And more generally: I've noticed that a lot of go packages have test
files named `*_test.go` Is it good policy to remove them from the
package when they get in the way like this ? Or are they needed in some
way that I don't expect ?
Pkg-go-maintainers mailing list