about summary refs log tree commit diff
path: root/tools/nixery/server/default.nix
diff options
context:
space:
mode:
authorVincent Ambo <tazjin@google.com>2019-08-14T19·13+0100
committerVincent Ambo <github@tazj.in>2019-08-14T19·18+0100
commit85b9c30749efb734c02e85a0460b563d9292344f (patch)
treebd321c7098620e21b6fe2b140be8bdf21c33f347 /tools/nixery/server/default.nix
parent36d50d1f19f8c55e1eb707639fe73906d8dd30e8 (diff)
chore(server): Add 'go vet' to build process
Diffstat (limited to 'tools/nixery/server/default.nix')
-rw-r--r--tools/nixery/server/default.nix8
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";