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

How to match a repo with mixed release zip names? #75

Open
rhysm94 opened this issue Nov 5, 2024 · 1 comment
Open

How to match a repo with mixed release zip names? #75

rhysm94 opened this issue Nov 5, 2024 · 1 comment

Comments

@rhysm94
Copy link

rhysm94 commented Nov 5, 2024

Hi there!

I'm looking at using ubi with mise to install some tooling in my iOS project.

I've figured out how to get it to install an older version of Sourcery which has a release with only one zip file – Sourcery-2.0.1.zip. More recent versions of Sourcery have also started to be built for platforms other than macOS, meaning newer releases offer the following options:

  • sourcery-2.2.5-ubuntu-22.04.4-lts-jammy-x86_64.tar.xz
  • sourcery-2.2.5.artifactbundle.zip
  • sourcery-2.2.5.zip

I know that sourcery-2.2.5.zip is the macOS release, but I can't figure out how to force this to be selected. When I try to install using the following command:

./ubi -p https://github.com/krzysztofzablocki/Sourcery -e sourcery --debug

I get the error:

[ubi][ERROR] could not find a release for this OS (macos) from sourcery-2.2.5-ubuntu-22.04.4-lts-jammy-x86_64.tar.xz, sourcery-2.2.5.artifactbundle.zip, sourcery-2.2.5.zip

Is there a way to force ubi to download that sourcery-2.2.5.zip release bundle?

Thanks!

@autarch
Copy link
Member

autarch commented Nov 8, 2024

The way --matching works is just to filter out multiple options after the OS and arch filtering. It's not a way to just select an arbitrary file.

I don't think there's a good way for ubi to handle this case. Honestly, I think the Sourcery project should adopt a more consistent release file naming scheme.

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

No branches or pull requests

2 participants