aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/tools/android
diff options
context:
space:
mode:
Diffstat (limited to 'src/tools/android')
-rw-r--r--src/tools/android/java/com/google/devtools/build/android/Converters.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/tools/android/java/com/google/devtools/build/android/Converters.java b/src/tools/android/java/com/google/devtools/build/android/Converters.java
index dcd83a537d..fa3d56519f 100644
--- a/src/tools/android/java/com/google/devtools/build/android/Converters.java
+++ b/src/tools/android/java/com/google/devtools/build/android/Converters.java
@@ -98,6 +98,12 @@ public final class Converters {
@Override
public FullRevision convert(String input) throws OptionsParsingException {
try {
+ // TODO(bazel-team): The current version of FullRevision doesn't know
+ // how to properly parse build tool revisions with "-preview", and
+ // upgrading to the lastest version will take time. Since we don't
+ // currently need to distinguish between preview and non-preview build
+ // tools, for now just remove the suffix.
+ input = input.replace("-preview", "");
return FullRevision.parseRevision(input);
} catch (NumberFormatException e) {
throw new OptionsParsingException(e.getMessage());