From 105a8e57c897aff915756f55292568399cc960fe Mon Sep 17 00:00:00 2001 From: bzub Date: Sat, 7 Dec 2019 13:15:10 -0600 Subject: [PATCH] Detect path to plugins from krusty tests. --- api/internal/plugins/compiler/compiler.go | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/api/internal/plugins/compiler/compiler.go b/api/internal/plugins/compiler/compiler.go index 315108edd..809fada48 100644 --- a/api/internal/plugins/compiler/compiler.go +++ b/api/internal/plugins/compiler/compiler.go @@ -37,6 +37,16 @@ func DeterminePluginSrcRoot(fSys filesys.FileSystem) (string, error) { "source directory", fSys, []konfig.NotedFunc{ { Note: "relative to unit test", + F: func() string { + return filepath.Clean( + filepath.Join( + os.Getenv("PWD"), + "..", "..", + konfig.RelPluginHome)) + }, + }, + { + Note: "relative to unit test (internal pkg)", F: func() string { return filepath.Clean( filepath.Join(