Skip to content

Commit e920092

Browse files
committed
Fix script/compile changed not working properly
1 parent 62f2e26 commit e920092

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

script/compile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ case $LANG in
4444
code="(tree-sitter-langs-create-bundle nil $target)"
4545
;;
4646
(changed)
47-
code="(tree-sitter-langs-compile-changed-or-all \"${2:-origin/master}\" $target)"
47+
code="(tree-sitter-langs-compile-changed-or-all \"${POSITIONAL[1]:-origin/master}\" $target)"
4848
;;
4949
(*)
5050
code="(tree-sitter-langs-compile '$LANG nil $target)"

script/compile.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ try {
1111
if (!$base) {
1212
$base = "origin/master"
1313
}
14-
$code = "(tree-sitter-langs-compile-changed-or-all """"$base"""")"
14+
$code = "(tree-sitter-langs-compile-changed-or-all \`"$base\`")"
1515
}
1616
default { $code = "(tree-sitter-langs-compile '$lang)" }
1717
}

tree-sitter-langs-build.el

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -423,7 +423,7 @@ If no language-specific change is detected, compile all languages."
423423
errors)
424424
(if (null lang-symbols)
425425
(progn
426-
(message "[tree-sitter-langs] Compiling all langs")
426+
(message "[tree-sitter-langs] Compiling all langs, since there's no change since %s" base)
427427
(tree-sitter-langs-create-bundle nil target))
428428
(message "[tree-sitter-langs] Compiling langs changed since %s: %s" base lang-symbols)
429429
(dolist (lang-symbol lang-symbols)

0 commit comments

Comments
 (0)