diff options
author | Vincent Ambo <tazjin@google.com> | 2019-08-14T19·13+0100 |
---|---|---|
committer | Vincent Ambo <github@tazj.in> | 2019-08-14T19·18+0100 |
commit | 85b9c30749efb734c02e85a0460b563d9292344f (patch) | |
tree | bd321c7098620e21b6fe2b140be8bdf21c33f347 | |
parent | 36d50d1f19f8c55e1eb707639fe73906d8dd30e8 (diff) |
chore(server): Add 'go vet' to build process
-rw-r--r-- | tools/nixery/server/default.nix | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tools/nixery/server/default.nix b/tools/nixery/server/default.nix index 05ad64261fa5..9df52721857c 100644 --- a/tools/nixery/server/default.nix +++ b/tools/nixery/server/default.nix @@ -21,6 +21,14 @@ buildGoPackage { goPackagePath = "github.com/google/nixery"; + # Enable checks and configure check-phase to include vet: + doCheck = true; + preCheck = '' + for pkg in $(getGoDirs ""); do + buildGoDir vet "$pkg" + done + ''; + meta = { description = "Container image builder serving Nix-backed images"; homepage = "https://github.com/google/nixery"; |