Hi Roman, > For a project considering switching to Go modules, is that possible to > reference a package without support of modules (doesn't have a go.mod/go.sum files)?
Yes, as far I understand, that should usually work. Using your example of wanting to consume a non-module dependency anEnterpriseCompany.com/anotherProject, a module-based consumer should be able to do things like: $ go get anEnterpriseCompany.com/anotherProject@<tag> $ go get anEnterpriseCompany.com/anotherProject@<hash> $ go get anEnterpriseCompany.com/anotherProject@latest There is a longer discussion in this FAQ on the Modules wiki: https://github.com/golang/go/wiki/Modules#can-a-module-consume-a-package-that-has-not-opted-in-to-modules Hope that helps, thepudds On Tuesday, July 9, 2019 at 9:21:48 AM UTC-4, Roman Gomoliako wrote: > > For a project considering switching to Go modules, is that possible to > reference a package without support of modules (doesn't have a > go.mod/go.sum files)? > > module anEnterpriseCompany.com/aProject > > require anEnterpriseCompany.com/anotherProject v0.0.0 > > go 1.12 > > "anEnterpriseCompany.com/anotherProject" can't be modified to support Go > modules for some internal reasons. Is there some ways to resolve this? > > Thanks, > > Roman > -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/44ea25f2-522d-46e3-9cbd-8746e015908e%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.