Module heptio/workgroup moved to projectcontour/contour/internal/workgroup

94 Views Asked by At

Module heptio/workgroup moved to projectcontour/contour/internal/workgroup. How would I use an internal package in my project? I am using go modules for dependency management.

1

There are 1 best solutions below

0
dave On

You can't (well, unless you use a version of Go < 1.5)

https://golang.org/doc/go1.4#internalpackages

"internal" packages that may not be imported by packages outside the source subtree in which they reside.

from 1.5 and onward it will be enforced for any repository.

You'll need to either find a different library that does the same thing, or copy the code into your own package.