Skip to content

Commit

Permalink
Install go in build WSL distro
Browse files Browse the repository at this point in the history
You may be concerned that the building environment is now polluted and
not a clean image. Worry not, for the purpose of this workflow run is
not to verify that the service builds. In this workflow, we build it
because we need it, and not to verify that it can build.

It is "QA/Build wsl-pro-service debian package" that is in charge of
verifying the package build.
  • Loading branch information
EduardGomezEscandell committed Sep 19, 2023
1 parent dac6a8b commit 932a940
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions tools/build/build-deb.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 932a940

Please sign in to comment.