Skip to content

Commit 725b413

Browse files
krukowCopilot
andcommitted
fix: set CLJ_JVM_OPTS for Maven local repo in sandbox
The tools JVM spawned by bb's deps.clj uses $HOME/.m2/repository to find cached Maven artifacts. Inside the awf sandbox $HOME is /root but the mount is at /home/runner/.m2. Setting maven.repo.local via CLJ_JVM_OPTS ensures the JVM finds the mounted Maven cache. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent f15262c commit 725b413

2 files changed

Lines changed: 6 additions & 5 deletions

File tree

.github/workflows/copilot-setup-steps.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -68,11 +68,12 @@ jobs:
6868
echo "Copied tools jar to $TOOLS_TARGET"
6969
fi
7070
fi
71-
# Tell bb's deps.clj where to find the tools jar using an absolute
72-
# path. Inside the awf sandbox $HOME is /root, but the mount maps
73-
# /home/runner/.deps.clj into the container, so we must use the
74-
# absolute host path rather than relying on $HOME.
71+
# Inside the awf sandbox $HOME is /root, but the mounts map
72+
# /home/runner/.deps.clj and /home/runner/.m2 into the container
73+
# at those same absolute paths. Set env vars so bb's deps.clj
74+
# and the tools JVM use the absolute host paths instead of $HOME.
7575
echo "DEPS_CLJ_TOOLS_DIR=$HOME/.deps.clj" >> "$GITHUB_ENV"
76+
echo "CLJ_JVM_OPTS=-Dmaven.repo.local=$HOME/.m2/repository" >> "$GITHUB_ENV"
7677
# Ensure deps directories are readable by any user
7778
chmod -R a+rX ~/.m2/repository ~/.deps.clj 2>/dev/null || true
7879
- name: Install gh-aw extension

.github/workflows/daily-doc-updater.lock.yml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)