Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions pkg/skaffold/helm/bin.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import (
"io"
"os"
"os/exec"
"path"
"path/filepath"
"regexp"
"strings"
"time"
Expand Down Expand Up @@ -121,8 +121,8 @@ func PreparePostRenderer(ctx context.Context, h Client, skaffoldBinary string, h

// Take the temporary directory name as unique plugin name. That string is expected to
// be safe for direct %s insertion in the YAML Helm plugin manifest.
helmPluginName := path.Base(helmPluginDir)
err = os.WriteFile(path.Join(helmPluginDir, "plugin.yaml"), []byte(fmt.Sprintf(PostRendererTemplate, helmPluginName, skaffoldBinaryAsYaml)), 0644)
helmPluginName := filepath.Base(helmPluginDir)
err = os.WriteFile(filepath.Join(helmPluginDir, "plugin.yaml"), []byte(fmt.Sprintf(PostRendererTemplate, helmPluginName, skaffoldBinaryAsYaml)), 0644)
if err != nil &&
// Don't produce an error in tests that simulate the directory
!strings.HasPrefix(PluginInstallDir, "TEMPORARY-TEST-DIR") {
Expand Down