We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8fdbc63 commit e1969caCopy full SHA for e1969ca
engine/engine.go
@@ -394,11 +394,15 @@ func (e *Engine) Build(outputs []string) error {
394
func (e *Engine) expandOutputs(outputs []string) ([]string, error) {
395
expanded := []string{}
396
for _, output := range outputs {
397
- glob, err := e.normalisePath(output)
+ normalised, err := e.normalisePath(output)
398
if err != nil {
399
return nil, err
400
}
401
- expanded = append(expanded, e.globber.MatchFilesystem(glob)...)
+ globbed := e.globber.MatchFilesystem(normalised)
402
+ if len(globbed) == 0 {
403
+ return nil, fmt.Errorf("no matching outputs for %q", normalised)
404
+ }
405
+ expanded = append(expanded, globbed...)
406
407
return expanded, nil
408
0 commit comments