Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Templated URL installs #29

Open
kzantow opened this issue Jul 16, 2024 · 1 comment
Open

Templated URL installs #29

kzantow opened this issue Jul 16, 2024 · 1 comment

Comments

@kzantow
Copy link
Contributor

kzantow commented Jul 16, 2024

In the case that binaries exist but are not hosted on Github releases, such as Helm, it might require downloading an archive and extracting a binary asset from the archive. By default, if there is a single binary, Binny could detect this and extract it to a file with the given name. An example might look something like this:

  - name: helm
    version:
      want: v3.15.3
    method: archive
    with:
      url: "https://get.helm.sh/helm-{{.Version}}-{{.Platform}}.{{.Extension}}"
      overrides:
        arm64:
          Platform: aarch64
        win32:
          Extension: zip

Coupled with #28, this would provide a lot of flexibility to support more tools.

@kzantow
Copy link
Contributor Author

kzantow commented Jul 16, 2024

The example suggestion is a modified version from an offline discussion:

# is there another method we want which is templated url
  # potential binary content detetor
  - name: helm
    version:
      want: v3.15.3
    method: archive-url
    with:
      target: helm # what target within the archive to get
      url: "https://get.helm.sh/helm-{{this comes from version want}}-{{this is platform magic}}.tar.gz"
      architecture-override:
        arm64: ["any and all file names people use"]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant