From 98c490a4580b6f735890287af9dd376f79560f67 Mon Sep 17 00:00:00 2001 From: Philipp Stehle Date: Mon, 4 May 2020 15:28:59 +0200 Subject: [PATCH] Bump to ytt 0.27.1 --- go.mod | 2 +- go.sum | 4 ++-- pkg/yttlint/validate.go | 6 +++--- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/go.mod b/go.mod index 179f0b4..4226dc6 100644 --- a/go.mod +++ b/go.mod @@ -4,7 +4,7 @@ go 1.13 require ( github.com/imdario/mergo v0.3.8 // indirect - github.com/k14s/ytt v0.27.0 + github.com/k14s/ytt v0.27.1 github.com/onsi/gomega v1.9.0 go.starlark.net v0.0.0-20190219202100-4eb76950c5f0 golang.org/x/crypto v0.0.0-20200302210943-78000ba7a073 // indirect diff --git a/go.sum b/go.sum index 13b9913..b903476 100644 --- a/go.sum +++ b/go.sum @@ -171,8 +171,8 @@ github.com/jstemmer/go-junit-report v0.0.0-20190106144839-af01ea7f8024/go.mod h1 github.com/julienschmidt/httprouter v1.2.0/go.mod h1:SYymIcj16QtmaHHD7aYtjjsJG7VTCxuUUipMqKk8s4w= github.com/k14s/starlark-go v0.0.0-20200402152745-409c85f3828d h1:4M2Up49zRmP9vl02ngiOalNj2G5Fie+9K2nlx0rh1DU= github.com/k14s/starlark-go v0.0.0-20200402152745-409c85f3828d/go.mod h1:nmDLcffg48OtT/PSW0Hg7FvpRQsQh5OSqIylirxKC7o= -github.com/k14s/ytt v0.27.0 h1:K7tWAizJ05r3PViO6i6JKHx+Xc7O+Aaw/WR6eN/Bc+s= -github.com/k14s/ytt v0.27.0/go.mod h1:aqGLSpChNeJO+ozZwOYkSKb0gXSYynTO+k6aQ6g5U0A= +github.com/k14s/ytt v0.27.1 h1:a1gyBXGPgi51DWn0FPdzY4k19kYsL8vMYkZ/aMNuxwE= +github.com/k14s/ytt v0.27.1/go.mod h1:aqGLSpChNeJO+ozZwOYkSKb0gXSYynTO+k6aQ6g5U0A= github.com/kisielk/errcheck v1.1.0/go.mod h1:EZBBE59ingxPouuu3KfxchcWSUPOHkagtvWXihfKN4Q= github.com/kisielk/errcheck v1.2.0/go.mod h1:/BMXB+zMLi60iA8Vv6Ksmxu/1UDYcXs4uQLJ+jE2L00= github.com/kisielk/gotool v1.0.0/go.mod h1:XhKaO+MFFWcvkIS/tQcRk01m1F5IRFswLeQ+oQHNcck= diff --git a/pkg/yttlint/validate.go b/pkg/yttlint/validate.go index c30e39e..14d4cb1 100644 --- a/pkg/yttlint/validate.go +++ b/pkg/yttlint/validate.go @@ -60,12 +60,12 @@ func (l myTemplateLoader) Load( return l.TemplateLoader.Load(thread, module) } -func (l myTemplateLoader) FilePaths() []string { - return nil +func (l myTemplateLoader) FilePaths(string) ([]string, error) { + return nil, fmt.Errorf("Unexpected call to FilePaths") // this should be handled by the injected magic-data-type } func (l myTemplateLoader) FileData(string) ([]byte, error) { - return nil, fmt.Errorf("FileData is not supported") + return nil, fmt.Errorf("Unexpected call to FileData") // this should be handled by the injected magic-data-type } func (l myTemplateLoader) LoadData(