setup-miniconda
    Preparing search index...

    Function ensureLocalInstaller

    • Get the path for a locally-executable installer from cache, or as downloaded.

      Assumes url at least ends with the correct executable extension for this platform, but makes no other assumptions about the URL format: it might include GET params, was not built with constructor (but still has the same CLI), or has been renamed during a build process.

      Parameters

      Returns Promise<string>

      The local path to the installer (with the correct extension).

      If no executable path could be determined after all attempts.

      const localPath = await ensureLocalInstaller({
      url: "https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh",
      tool: "Miniconda3",
      version: "latest",
      arch: "x86_64",
      });