Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
x/vgo: allow approximate matching for replace directives #24825
Currently a vgo replace directive specifies the replacement of an exact version of a module, but this means that if we're trying to override a module with a local version and for some reason a different version is selected (for example because we have updated some other module and it specifies a later version), the replacement will be ignored. This means that replacement directives are fragile.
Consider allowing a syntax where the specified version can omit the minor or patch version to match all minor versions or all patch versions for a given module.