3 ms·
It would be great to be able to declare a dependency with an alias at the go.mod level. Rather than requiring the publisher of a dependency to update their path
by tikkabhuna 5y ago
It would be great to be able to declare a dependency with an alias at the go.mod level. Rather than requiring the publisher of a dependency to update their paths you can choose.
That way if a dependency does a minor upgrade that breaks your code but you also need some new functionality, you could depend on the old code in a particular package and new code in another.
- paskozdilar 5y agokardianos commented on May 23, 2018: One goal of vgo is to not make the source go files dependent on the module file. If the vgo file is removed, the worset result is a fresh build gets the latest in major version series. This proposal appears to break that principal. Source: https://github.com/golang/go/issues/25518#issuecomment-391348144 https://github.com/golang/go/issues/25518#issuecomment-39134...