blob: 3d4bea7b50a8ff6e2abb5884a7bbb5779f92c705 [file] [log] [blame]
Leopold Schabeldca59d92021-04-01 19:02:53 +02001#!/usr/bin/env bash
Leopold Schabel2a2081c2019-10-23 13:33:10 +02002set -euo pipefail
Leopold Schabel2983d722019-10-23 12:16:42 +02003
Leopold Schabel399fe832019-11-15 21:15:30 +01004# 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#
Serge Bazanskiacae1ef2021-05-19 11:31:40 +02009ARGS=$(echo $@ | sed "s%--override_repository=intellij_aspect=[^ ]*%--override_repository=intellij_aspect=${HOME}/.cache/bazel-monogon/ijwb_aspect%")
Leopold Schabel399fe832019-11-15 21:15:30 +010010
Serge Bazanskiacae1ef2021-05-19 11:31:40 +020011exec podman exec -it monogon-dev bazel --output_user_root ${HOME}/.cache/bazel-monogon $ARGS