From 2f73127acc2017cabbf8c090ca58db8f9e9a2343 Mon Sep 17 00:00:00 2001 From: Brian Yang <125406446+gpupuck@users.noreply.github.com> Date: Mon, 21 Oct 2024 14:14:48 -0700 Subject: [PATCH] Add extra new line before .local_cuda.bazelrc (#1113) Sometimes when there is no new line at the end of `.bazelrc` file, it will end up with `try-import %workspace%/.bazelrc.usertry-import %workspace%/.local_cuda.bazelrc`. For example this commit did not contain a new line at the end: https://github.com/jax-ml/jax/commit/a2bc8c2e07912fac6d847423a7fbe42bdd33f42b --- .github/container/build-jax.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/container/build-jax.sh b/.github/container/build-jax.sh index 8ff65ca99..a1bd2f1c6 100755 --- a/.github/container/build-jax.sh +++ b/.github/container/build-jax.sh @@ -265,7 +265,7 @@ if [[ ! -e "/usr/local/cuda/lib" ]]; then fi if ! grep 'try-import %workspace%/.local_cuda.bazelrc' "${SRC_PATH_JAX}/.bazelrc"; then - echo 'try-import %workspace%/.local_cuda.bazelrc' >> "${SRC_PATH_JAX}/.bazelrc" + echo -e '\ntry-import %workspace%/.local_cuda.bazelrc' >> "${SRC_PATH_JAX}/.bazelrc" fi cat > "${SRC_PATH_JAX}/.local_cuda.bazelrc" << EOF build:cuda --repo_env=LOCAL_CUDA_PATH="/usr/local/cuda"