|author||Russ Cox <firstname.lastname@example.org>||Thu Jul 05 16:05:18 2018 -0400|
|committer||Russ Cox <email@example.com>||Thu Jul 12 17:27:38 2018 +0000|
cmd/go/internal/modfile: allow replace without old version Replace directives to date have looked like replace old v1.2.3 => new v1.4.5 As pointed out in golang/go#24825, this can result in fragile go.mod where the replacement stops kicking in after an upgrade that affects the selected old version. The fact that the replacement specifies exactly which version it is capable of replacing might be a feature, but in other contexts it's just a hassle. Allow not specifying the version, in which case the replacement applies to all versions of that module. Fixes golang/go#24825. Change-Id: Iad97dde25c06fcba3c1181d650f9fa5e95f83157 Reviewed-on: https://go-review.googlesource.com/122400 Run-TryBot: Russ Cox <firstname.lastname@example.org> TryBot-Result: Gobot Gobot <email@example.com> Reviewed-by: Bryan C. Mills <firstname.lastname@example.org>
This repository holds a prototype of what the go command might look like with integrated support for package versioning.
See research.swtch.com/vgo for documents about the design.
go get -u golang.org/x/vgo.
You can also manually git clone the repository to
This is still a very early prototype. You are likely to run into bugs. Please file bugs in the main Go issue tracker, golang.org/issue, and put the prefix
x/vgo: in the issue title.