From 1ae2d3af57d3412e9306f9f2b5a169cfeea9bbc6 Mon Sep 17 00:00:00 2001 From: Eruis2579 Date: Tue, 10 Feb 2026 11:03:08 +0100 Subject: [PATCH] fix: Use goto :end for proper cleanup in --version handler (#8717) Use goto :end instead of goto :eof to ensure @endlocal is called and the script exits cleanly. This should fix the Windows test hang when sbtn calls the script. --- launcher-package/src/universal/bin/sbt.bat | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/launcher-package/src/universal/bin/sbt.bat b/launcher-package/src/universal/bin/sbt.bat index 19cc28e40..2a417d76e 100755 --- a/launcher-package/src/universal/bin/sbt.bat +++ b/launcher-package/src/universal/bin/sbt.bat @@ -628,7 +628,7 @@ if !sbt_args_print_version! equ 1 ( echo. echo [info] sbt runner (sbt-the-batch-script) is a runner to run any declared version of sbt. echo [info] Actual version of the sbt is declared using project\build.properties for each build. - goto :eof + goto :end ) if !run_native_client! equ 1 (