chore(server): Add 'go vet' to build process

This commit is contained in:
Vincent Ambo 2019-08-14 20:13:35 +01:00 committed by Vincent Ambo
parent 36d50d1f19
commit 85b9c30749

View file

@ -21,6 +21,14 @@ buildGoPackage {
goPackagePath = "github.com/google/nixery"; 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 = { meta = {
description = "Container image builder serving Nix-backed images"; description = "Container image builder serving Nix-backed images";
homepage = "https://github.com/google/nixery"; homepage = "https://github.com/google/nixery";