fix tests
This commit is contained in:
parent
a892d13d56
commit
aadd95497a
|
@ -198,11 +198,11 @@ func (b *Builder) Prepare(raws ...interface{}) ([]string, []string, error) {
|
||||||
|
|
||||||
if len(b.config.PackageInclude) > 0 {
|
if len(b.config.PackageInclude) > 0 {
|
||||||
include := []string{}
|
include := []string{}
|
||||||
for i, inclFile := range b.config.PackageInclude {
|
for _, rawFile := range b.config.PackageInclude {
|
||||||
b.config.PackageInclude, err = filepath.Abs(b.config.PackageInclude)
|
inclFile, err := filepath.Abs(rawFile)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
packer.MultiErrorAppend(errs,
|
packer.MultiErrorAppend(errs,
|
||||||
fmt.Errorf("unable to determine absolute path for file to be included: %s", inclFile))
|
fmt.Errorf("unable to determine absolute path for file to be included: %s", rawFile))
|
||||||
}
|
}
|
||||||
include = append(include, inclFile)
|
include = append(include, inclFile)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue