diff options
author | Googler <noreply@google.com> | 2017-02-09 16:48:21 +0000 |
---|---|---|
committer | Kristina Chodorow <kchodorow@google.com> | 2017-02-09 19:27:40 +0000 |
commit | 22e4144112f464ada9c41adf71a5a07eb2206af4 (patch) | |
tree | fd148d6dfa454871a7b8f0bdeed2a2fce0e04038 /tools | |
parent | 31214a42e31e85d005bb40e96ec28e96dcd195d7 (diff) |
Skylark IntelliJ aspect: fix relative path for external workspace artifacts.
--
PiperOrigin-RevId: 147039153
MOS_MIGRATED_REVID=147039153
Diffstat (limited to 'tools')
-rw-r--r-- | tools/ide/intellij_info_impl.bzl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/ide/intellij_info_impl.bzl b/tools/ide/intellij_info_impl.bzl index 3fb38edf18..2c8550e07f 100644 --- a/tools/ide/intellij_info_impl.bzl +++ b/tools/ide/intellij_info_impl.bzl @@ -74,7 +74,7 @@ def get_relative_path(artifact): string: the root-relative path for this artifact. """ # TODO(bazel-team): remove this workaround when Artifact::short_path is fixed. - if artifact.is_source and is_external(artifact.owner) and artifact.short_path.startswith(".."): + if is_external(artifact.owner) and artifact.short_path.startswith(".."): # short_path is '../repo_name/path', we want 'external/repo_name/path' return "external" + artifact.short_path[2:] return artifact.short_path |