Leopold Schabel | dca59d9 | 2021-04-01 19:02:53 +0200 | [diff] [blame^] | 1 | #!/usr/bin/env bash |
Leopold Schabel | 2a2081c | 2019-10-23 13:33:10 +0200 | [diff] [blame] | 2 | set -euo pipefail |
Leopold Schabel | 2983d72 | 2019-10-23 12:16:42 +0200 | [diff] [blame] | 3 | |
Leopold Schabel | 399fe83 | 2019-11-15 21:15:30 +0100 | [diff] [blame] | 4 | # Override the intellij_aspect repository to point to our own copy that create_container.sh has applied patches to. |
| 5 | # |
| 6 | # The IntelliJ plugin sets the repository using a command line argument, which we need to replace: |
| 7 | # --override_repository=intellij_aspect=<...>/plugins/ijwb/aspect |
| 8 | # |
| 9 | ARGS=$(echo $@ | sed "s%--override_repository=intellij_aspect=[^ ]*%--override_repository=intellij_aspect=${HOME}/.cache/bazel-nxt/ijwb_aspect%") |
| 10 | |
Serge Bazanski | febf0b0 | 2021-01-07 16:34:28 +0100 | [diff] [blame] | 11 | exec podman exec -it monogon-dev bazel --output_user_root ${HOME}/.cache/bazel-nxt $ARGS |