Skip to content

Commit c6c3689

Browse files
committed
Fix running mill projects
1 parent 0b33997 commit c6c3689

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

project-builder/mill/build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ millSettings=(
4444
function tryBuild() {
4545
mill=$1
4646
echo "Try build using $mill"
47-
$mill ${millSettings[@]} runCommunityBuild "$scalaVersion" "${projectConfig}" "${targets[@]}"
47+
$mill "${millSettings[@]}" runCommunityBuild "$scalaVersion" "${projectConfig}" "${targets[@]}"
4848
}
4949

5050

project-builder/mill/prepare-project.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ if [[ -f .mill-version ]];then
3030
else
3131
echo "No .mill-version file found, detecting compatible mill version"
3232
if [[ -f ./mill ]];then
33-
millVersion=`./mill -v resolve _ | grep "[Mm]ill.*version" | grep -E -o "(\d+\.?){3}"`
33+
millVersion=`./mill -v $RESOLVE | grep "[Mm]ill.*version" | grep -E -o "(\d+\.?){3}"`
3434
else
3535
for v in $MILL_0_11 $MILL_0_10 $MILL_0_9; do
3636
if ${scriptDir}/millw --mill-version $v $RESOLVE > /dev/null 2>/dev/null; then

0 commit comments

Comments
 (0)