File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -217,7 +217,7 @@ func ensureFuncVersion(version string) (string, error) {
217217 }
218218
219219 // Download the version
220- if err := downloadFuncVersion (version , versionDir , funcBinary ); err != nil {
220+ if err := downloadFuncVersion (version , funcBinary ); err != nil {
221221 return "" , err
222222 }
223223
@@ -227,7 +227,7 @@ func ensureFuncVersion(version string) (string, error) {
227227// downloadFuncVersion downloads the specified func version from GitHub releases.
228228// It writes to a temporary file first and atomically renames it to avoid exposing
229229// a partially-written binary to other processes.
230- func downloadFuncVersion (version , versionDir , funcBinary string ) error {
230+ func downloadFuncVersion (version , funcBinary string ) error {
231231 asset := funccli .AssetName ()
232232 base := "https://github.com/knative/func/releases/download/knative-" + version
233233 binaryURL := base + "/" + asset
You can’t perform that action at this time.
0 commit comments