From f1c1e496857867075469b2abb7f728484208ecb0 Mon Sep 17 00:00:00 2001 From: Wilken Rivera Date: Thu, 11 May 2023 16:48:30 -0400 Subject: [PATCH] Fix executable directory path --- packer/plugin_folders.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packer/plugin_folders.go b/packer/plugin_folders.go index 07e74d191..99ff3b13a 100644 --- a/packer/plugin_folders.go +++ b/packer/plugin_folders.go @@ -19,7 +19,7 @@ func PluginFolders(dirs ...string) []string { if path, err := os.Executable(); err != nil { log.Printf("[ERR] Error finding executable: %v", err) } else { - res = append(res, path) + res = append(res, filepath.Dir(path)) } res = append(res, dirs...)