blob: 1fda28c8e42555f65cd7c351dcf621d718e270fa [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#
9ARGS=$(echo $@ | sed "s%--override_repository=intellij_aspect=[^ ]*%--override_repository=intellij_aspect=${HOME}/.cache/bazel-nxt/ijwb_aspect%")
10
Serge Bazanskifebf0b02021-01-07 16:34:28 +010011exec podman exec -it monogon-dev bazel --output_user_root ${HOME}/.cache/bazel-nxt $ARGS