Skip to content

Commit

Permalink
[fix] bazel-<workspace-name> symlink exclusion uses real name of th…
Browse files Browse the repository at this point in the history
…e workspace instead of sanitized one

Merge-request: BAZEL-MR-935
Merged-by: Marcin Abramowicz <marcin.abramowicz@jetbrains.com>
  • Loading branch information
abrams27 authored and qodana-bot committed Mar 20, 2024
1 parent 8fac88f commit b9598d9
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -146,10 +146,7 @@ class BspProjectMapper(
private fun computeSymlinksToExclude(workspaceRoot: URI): List<Path> {
val stableSymlinkNames = setOf("bazel-out", "bazel-testlogs", "bazel-bin")
val workspaceRootPath = workspaceRoot.toPath()
val sanitizedWorkspaceRootPath = workspaceRootPath
.name
.replace("[^A-Za-z0-9]".toRegex(), "-")
val workspaceSymlinkNames = setOf("bazel-$sanitizedWorkspaceRootPath")
val workspaceSymlinkNames = setOf("bazel-${workspaceRootPath.name}")

return (stableSymlinkNames + workspaceSymlinkNames).map { workspaceRootPath.resolve(it) }
}
Expand Down

0 comments on commit b9598d9

Please sign in to comment.