-
Notifications
You must be signed in to change notification settings - Fork 279
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
encoding/protobuf: cope with major version suffixes in module paths
Currently the protobuf logic for determining if an import is inside the main module does not work if the module has a major version suffix. This change makes that work OK. It's not perfect, because we do not consider the major version that might be present in the Go import path, but it's certainly better than before. Signed-off-by: Roger Peppe <rogpeppe@gmail.com> Change-Id: I36fbc476ecdaff1fce01dd2e5095c77f455bbacf Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1194791 Unity-Result: CUE porcuepine <cue.porcuepine@gmail.com> Reviewed-by: Daniel Martí <mvdan@mvdan.cc> TryBot-Result: CUEcueckoo <cueckoo@cuelang.org>
- Loading branch information
Showing
2 changed files
with
19 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters