diff --git a/tools/build/build-deb.ps1 b/tools/build/build-deb.ps1 index c7a872329..9bdc15438 100644 --- a/tools/build/build-deb.ps1 +++ b/tools/build/build-deb.ps1 @@ -47,9 +47,13 @@ set -eu git config --global --add safe.directory "$(pwd)" -# Update internal dependencies in the repo -# (we need git to work, and .git is not rsync'd) +# Update internal dependencies in the repo because +# we need git to work, and .git is not rsync'd. cd wsl-pro-service +go version || ( + sudo DEBIAN_FRONTEND=noninteractive apt update + sudo DEBIAN_FRONTEND=noninteractive apt install -y golang-go +) ./debian/update-internal-dependencies go mod tidy go mod vendor