Skip to content

Commit

Permalink
Update format-test.template.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
virusdave authored Feb 6, 2022
1 parent bf25d5f commit f8ec4b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scala/scalafmt/private/format-test.template.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# Explanation: IF $BUILD_WORKSPACE_DIRECTORY is set to something (as it would be during a
# `bazel run`), then append a trailing `/`. If it's not set (as it wouldn't be during
# a `bazel test` invocation in a wrapping `sh_test` rule), then elide the trailing `/`, and
# instead rely upon a relative path from the test's runtrees. The corresponding change
# instead rely upon a relative path from the test's runfiles tree. The corresponding change
# to `phase_scalafmt` places the source files into the `runfiles` set, so they'll be symlinked
# correctly in the appropriate relative location.
WORKSPACE_ROOT="${1:-${BUILD_WORKSPACE_DIRECTORY}${BUILD_WORKSPACE_DIRECTORY:+/}}"
Expand Down

0 comments on commit f8ec4b2

Please sign in to comment.