@@ -173,7 +173,8 @@ func validateNIX(valroot, resdir string) error {
173
173
174
174
// TODO: Allow validator config that specifies file paths to validate
175
175
// For now we validate everything
176
- nixfiles := make ([]string , 0 )
176
+ nixargs := make ([]string , 0 )
177
+ nixargs = append (nixargs , "validate" )
177
178
// Find all NIX files (.nix) in the repository
178
179
nixfinder := func (path string , info os.FileInfo , err error ) error {
179
180
if err != nil {
@@ -187,7 +188,7 @@ func validateNIX(valroot, resdir string) error {
187
188
}
188
189
189
190
if strings .ToLower (filepath .Ext (path )) == ".nix" {
190
- nixfiles = append (nixfiles , path )
191
+ nixargs = append (nixargs , path )
191
192
}
192
193
return nil
193
194
}
@@ -202,7 +203,7 @@ func validateNIX(valroot, resdir string) error {
202
203
outBadge := filepath .Join (resdir , srvcfg .Label .ResultsBadge )
203
204
204
205
var out , serr bytes.Buffer
205
- cmd := exec .Command (srvcfg .Exec .NIX , nixfiles ... )
206
+ cmd := exec .Command (srvcfg .Exec .NIX , nixargs ... )
206
207
out .Reset ()
207
208
serr .Reset ()
208
209
cmd .Stdout = & out
0 commit comments