Skip to content

Commit 2f73127

Browse files
authored
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: jax-ml/jax@a2bc8c2
1 parent cfc3f74 commit 2f73127

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/container/build-jax.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ if [[ ! -e "/usr/local/cuda/lib" ]]; then
265265
fi
266266

267267
if ! grep 'try-import %workspace%/.local_cuda.bazelrc' "${SRC_PATH_JAX}/.bazelrc"; then
268-
echo 'try-import %workspace%/.local_cuda.bazelrc' >> "${SRC_PATH_JAX}/.bazelrc"
268+
echo -e '\ntry-import %workspace%/.local_cuda.bazelrc' >> "${SRC_PATH_JAX}/.bazelrc"
269269
fi
270270
cat > "${SRC_PATH_JAX}/.local_cuda.bazelrc" << EOF
271271
build:cuda --repo_env=LOCAL_CUDA_PATH="/usr/local/cuda"

0 commit comments

Comments
 (0)