Skip to content

Commit

Permalink
Add some hacks to support running the debugger in intellij for golang
Browse files Browse the repository at this point in the history
  • Loading branch information
agchang committed Jul 6, 2023
1 parent 00b155e commit 699a4ee
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions skylib/k8s_test_namespace.sh.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ function guess_runfiles() {
popd > /dev/null 2>&1
}

TEST_SRCDIR="$(readlink -f $TEST_SRCDIR)"
cd $TEST_SRCDIR/arize_ai
RUNFILES=${TEST_SRCDIR:-$(guess_runfiles)}
TEST_UNDECLARED_OUTPUTS_DIR=${TEST_UNDECLARED_OUTPUTS_DIR:-.}

Expand Down
2 changes: 2 additions & 0 deletions skylib/kustomize/set_namespace.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ set +x
# --- begin runfiles.bash initialization v3 ---
# Copy-pasted from the Bazel Bash runfiles library v3.
set -uo pipefail; set +e; f=bazel_tools/tools/bash/runfiles/runfiles.bash

RUNFILES_DIR="$(echo $(cd ../ && pwd))"
source "${RUNFILES_DIR:-/dev/null}/$f" 2>/dev/null || \
source "$(grep -sm1 "^$f " "${RUNFILES_MANIFEST_FILE:-/dev/null}" | cut -f2- -d' ')" 2>/dev/null || \
source "$0.runfiles/$f" 2>/dev/null || \
Expand Down

0 comments on commit 699a4ee

Please sign in to comment.