Closed michael-schaller closed 5 years ago
Thanks for filing this. We could also use an import comment so that the Go tool will print an appropriate error: https://golang.org/cmd/go/#hdr-Import_path_checking
According to that link the import path comment will be ignored in case modules are used. So should an import path comment and a go.mod be added?
Added the import comments and sent a PR for the module so that @paultag can confirm there’s nothing speaking against that :)
Merged, thanks! I'm unsure of a few things, but this is a step forward, thank you all!
Thanks. How about Go modules? Currently module support still needs to be enabled on demand but I have the feeling module support is here to stay. The import comments will be ignored by the module support though and so the question remains if a go.mod
file should be added. I can also open a new bug for this...
We have already added the Go module support, see PR #100
Ah. I've missed that. Thanks!
It isn't documented that one has to use
pault.ag/go/debian
and can't usegithub.com/paultag/go-debian
as alternative. This should be documented inREADME.md
.Alternatively it might be worth to just get rid of the internal package or to make it public.