Add support for build= variable
build is a magic variable that acts similarly to subdirs, but specifies
files to build instead of subdirs. Using files provides a few advantages:
files can be named something more appropriate for the project than
"Blueprints", whatever you want instead of Blueprints, and multiple
Blueprints files can exist in the same directory.
A new variable is used instead of putting filenames into subdirs to avoid
unexpected behavior when a glob matches both files and directories.
subdirs= and build= entries that don't match any directories or files
are now reported as errors.
Change-Id: Id329504ace251eab4ccea1081a3c8665a4c52f5a
diff --git a/context_test.go b/context_test.go
index 3d8f6ee..1c4303b 100644
--- a/context_test.go
+++ b/context_test.go
@@ -71,7 +71,7 @@
}
`)
- _, _, errs, _ := ctx.parse(".", "Blueprint", r, nil)
+ _, _, _, errs := ctx.parse(".", "Blueprint", r, nil)
if len(errs) > 0 {
t.Errorf("unexpected parse errors:")
for _, err := range errs {