diff --git a/internal/download/downloader.go b/internal/download/downloader.go index 8829a18c..93f6ac2e 100644 --- a/internal/download/downloader.go +++ b/internal/download/downloader.go @@ -161,7 +161,7 @@ func extractTARGZ(targetDir string, at io.ReaderAt, size int64) error { return nil } -// Dowloads the given binary to the target directory +// Downloads the given binary to the target directory func downloadBinary(targetDir string, read io.ReaderAt, size int64) error { klog.V(4).Infof("Downloading binary to %q", targetDir) diff --git a/internal/download/downloader_test.go b/internal/download/downloader_test.go index b33aae6a..18819771 100644 --- a/internal/download/downloader_test.go +++ b/internal/download/downloader_test.go @@ -671,7 +671,7 @@ func Test_downloadBinary(t *testing.T) { { name: "test fail write of binary", args: args{ - targetDir: filepath.Join(testdataPath(), "test/foo"), + targetDir: filepath.Join(testdataPath(), "test", "foo"), read: "", size: "", }, diff --git a/internal/installation/install.go b/internal/installation/install.go index 8c5af2b8..f26aa66d 100644 --- a/internal/installation/install.go +++ b/internal/installation/install.go @@ -109,7 +109,7 @@ func install(op installOperation, opts InstallOpts) error { return errors.Wrap(err, "failed to unpack into staging dir") } - // Download Liscense file from given URI and rename downloaded binary to plugin name + // Download License file from given URI and rename downloaded binary to plugin name if op.platform.License != "" { if err:= downloadLicenseFile(downloadStagingDir, op.platform.License); err != nil { return errors.Wrap(err, "failed downloading license file to installation directory")