From 1dbce800da6fc07a68cb7dca32e858809a592c2a Mon Sep 17 00:00:00 2001 From: Catfriend1 Date: Sun, 22 Sep 2019 13:24:56 +0200 Subject: [PATCH] SyncthingNative_update_and_build: Revert "go.mod" to checkout state after build --- SyncthingNative_update_and_build.cmd | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/SyncthingNative_update_and_build.cmd b/SyncthingNative_update_and_build.cmd index d435c6379..1fd6173dc 100644 --- a/SyncthingNative_update_and_build.cmd +++ b/SyncthingNative_update_and_build.cmd @@ -59,6 +59,11 @@ SET RESULT=%ERRORLEVEL% IF "%USE_GO_DEV%" == "1" call :revertGoDev IF NOT "%RESULT%" == "0" echo [ERROR] gradlew buildNative FAILED. & goto :eos REM +echo [INFO] Reverting "go.mod" to checkout state ... +cd /d "%SCRIPT_PATH%syncthing\src\github.com\syncthing\syncthing" +git checkout -- go.mod +cd /d "%SCRIPT_PATH%" +REM echo [INFO] Checking if SyncthingNative was built successfully ... REM SET LIBCOUNT=