From 0f936d9329942e1e6f24e0aeb9dc6c2794ddf458 Mon Sep 17 00:00:00 2001 From: Thomas Jay Rush Date: Sun, 22 Sep 2024 21:50:08 -0400 Subject: [PATCH] Removes unused .bat files --- scripts/go-mod-tidy.bat | 27 ------------------------- scripts/go-work-sync.bat | 43 ---------------------------------------- 2 files changed, 70 deletions(-) delete mode 100644 scripts/go-mod-tidy.bat delete mode 100644 scripts/go-work-sync.bat diff --git a/scripts/go-mod-tidy.bat b/scripts/go-mod-tidy.bat deleted file mode 100644 index f26178e264..0000000000 --- a/scripts/go-mod-tidy.bat +++ /dev/null @@ -1,27 +0,0 @@ -:: NOTE: THIS FILE IS NOT MAINTAINED AND IS LIKELY BROKEN -:: NO WE DON'T SUPPORT WINDOWS - -@echo off -setlocal - -:: Get the directory where the script is located -set SCRIPT_DIR_BACKSLASH=%~dp0 -set SCRIPT_DIR=%script_dir_backslash:~0,-1% -set ROOT_DIR=%SCRIPT_DIR%\.. - -:: Find all go.mod files and tidy them -cd /d %ROOT_DIR%\examples\balanceChart && go mod tidy -cd /d %ROOT_DIR%\examples\cancelContext && go mod tidy -cd /d %ROOT_DIR%\examples\findFirst && go mod tidy -cd /d %ROOT_DIR%\examples\nameManager && go mod tidy -cd /d %ROOT_DIR%\examples\simple && go mod tidy -cd /d %ROOT_DIR%\examples\withStreaming && go mod tidy -cd /d %ROOT_DIR%\src\apps\chifra && go mod tidy -cd /d %ROOT_DIR%\src\node && go mod tidy -cd /d %ROOT_DIR%\src\dev_tools\goMaker && go mod tidy -cd /d %ROOT_DIR%\src\dev_tools\indexManager && go mod tidy -cd /d %ROOT_DIR%\src\dev_tools\sdkFuzzer && go mod tidy -cd /d %ROOT_DIR%\src\dev_tools\testRunner && go mod tidy - -:: Return to the original directory and exit -exit /b diff --git a/scripts/go-work-sync.bat b/scripts/go-work-sync.bat deleted file mode 100644 index 1407f09984..0000000000 --- a/scripts/go-work-sync.bat +++ /dev/null @@ -1,43 +0,0 @@ -:: NOTE: THIS FILE IS NOT MAINTAINED AND IS LIKELY BROKEN -:: NO WE DON'T SUPPORT WINDOWS - -@echo off -setlocal - -:: Get the directory where the script is located -set SCRIPT_DIR_BACKSLASH=%~dp0 -set SCRIPT_DIR=%script_dir_backslash:~0,-1% -set ROOT_DIR=%SCRIPT_DIR%\.. - -:: Regenerate the go.work file -set GO_WORK_FILE=%ROOT_DIR%\go.work -echo // Go Version > "%GO_WORK_FILE%" -echo go 1.22 >> "%GO_WORK_FILE%" - -:: Find all go.mod files in the src directory and add their directories to go.work -cd %ROOT_DIR% && go work use .\examples\balanceChart -cd %ROOT_DIR% && go work use .\examples\cancelContext -cd %ROOT_DIR% && go work use .\examples\findFirst -cd %ROOT_DIR% && go work use .\examples\nameManager -cd %ROOT_DIR% && go work use .\examples\simple -cd %ROOT_DIR% && go work use .\examples\withStreaming -cd %ROOT_DIR% && go work use .\src\apps\chifra -cd %ROOT_DIR% && go work use .\src\node -cd %ROOT_DIR% && go work use .\src\dev_tools\goMaker -cd %ROOT_DIR% && go work use .\src\dev_tools\indexManager -cd %ROOT_DIR% && go work use .\src\dev_tools\sdkFuzzer -cd %ROOT_DIR% && go work use .\src\dev_tools\testRunner - -:: Run go work sync -cd /d %ROOT_DIR% && go work sync - -:: Display the contents of go.work -echo Created go.work with these contents. -type "%GO_WORK_FILE%" - -:: Run go-mod-tidy script -call "%SCRIPT_DIR%\go-mod-tidy.bat" - -:: Return to the original directory and exit -cd /d "%SCRIPT_DIR%" -exit /b