Skip to content
This repository has been archived by the owner on Aug 5, 2024. It is now read-only.

Commit

Permalink
[fix] fixed resolveOutput implementation.
Browse files Browse the repository at this point in the history
the current version does not work with Bazel projects having no symlinks like bazel-bin, bazel-out, etc.

Merge-request: BAZEL-MR-468
Merged-by: Xuan Son Trinh <xuanson.trinh@jetbrains.com>
  • Loading branch information
xuansontrinh authored and qodana-bot committed Aug 23, 2023
1 parent 8238ab4 commit eb5df0a
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,7 @@ class BazelPathsResolver(private val bazelInfo: BazelInfo) {
.resolve(fileLocation.relativePath)

private fun resolveOutput(fileLocation: FileLocation): Path =
bazelInfo
.workspaceRoot
.resolve(fileLocation.rootExecutionPathFragment)
.resolve(fileLocation.relativePath)
Paths.get(bazelInfo.execRoot, fileLocation.rootExecutionPathFragment, fileLocation.relativePath)

private fun resolveSource(fileLocation: FileLocation): Path =
bazelInfo.workspaceRoot.resolve(fileLocation.relativePath)
Expand Down

0 comments on commit eb5df0a

Please sign in to comment.