Skip to content

Commit

Permalink
Add extra new line before .local_cuda.bazelrc (#1113)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
gpupuck authored Oct 21, 2024
1 parent cfc3f74 commit 2f73127
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/container/build-jax.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 2f73127

Please sign in to comment.