diff --git a/vendor/github.com/hashicorp/go-getter/source.go b/vendor/github.com/hashicorp/go-getter/source.go index 47307ead5..c63f2bbaf 100644 --- a/vendor/github.com/hashicorp/go-getter/source.go +++ b/vendor/github.com/hashicorp/go-getter/source.go @@ -49,6 +49,11 @@ func SubdirGlob(dst, subDir string) (string, error) { if err != nil { return "", err } + + if len(matches) == 0 { + return "", fmt.Errorf("subdir %q not found", subDir) + } + if len(matches) > 1 { return "", fmt.Errorf("subdir %q matches multiple paths", subDir) } diff --git a/vendor/vendor.json b/vendor/vendor.json index 19af83af9..d3c7f244c 100644 --- a/vendor/vendor.json +++ b/vendor/vendor.json @@ -1366,10 +1366,10 @@ "revisionTime": "2017-02-11T01:34:15Z" }, { - "checksumSHA1": "7SY5eTKPGF0BjyByXfKhZAAqnKc=", + "checksumSHA1": "9VcI9QGCShWIUIL187qRd4sxwb8=", "path": "github.com/hashicorp/go-getter", - "revision": "56c651a79a6eec93e6ef074fe9e57fefb26b8b85", - "revisionTime": "2017-09-14T15:44:44Z", + "revision": "a686900cb3753aa644dc4812be91ceaf9fdd3b98", + "revisionTime": "2017-09-22T19:29:48Z", "version": "master", "versionExact": "master" },