From b8ddbe17f6c6088a26ebe4c43687b6a286696600 Mon Sep 17 00:00:00 2001 From: Stu Leak Date: Tue, 9 Dec 2025 00:51:11 -0500 Subject: [PATCH] Add Windows clear-go-cache.bat helper --- scripts/clear-go-cache.bat | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 scripts/clear-go-cache.bat diff --git a/scripts/clear-go-cache.bat b/scripts/clear-go-cache.bat new file mode 100644 index 0000000..24020e5 --- /dev/null +++ b/scripts/clear-go-cache.bat @@ -0,0 +1,26 @@ +@echo off +setlocal +echo ============================================================ +echo VideoTools Go Cache Cleaner (Windows) +echo ============================================================ +echo. + +where go >nul 2>&1 +if %ERRORLEVEL% neq 0 ( + echo Go is not installed or not in PATH. Skipping go clean. +) else ( + echo Running: go clean -cache -modcache -testcache + go clean -cache -modcache -testcache +) + +set CACHE_DIR=%LOCALAPPDATA%\go-build +if exist "%CACHE_DIR%" ( + echo Removing build cache dir: "%CACHE_DIR%" + rmdir /s /q "%CACHE_DIR%" +) else ( + echo No cache directory found at "%CACHE_DIR%" (nothing to remove). +) + +echo. +echo Done. Re-run scripts\build.bat to rebuild VideoTools. +endlocal