Skip to content

Cannot match 'linux' OS to 'ubuntu' binaries #143

@jkelley-godaddy

Description

@jkelley-godaddy

Thank you for making ubi - it is a great tool that works perfectly with most repositories.

We have one repository that is giving us issues when attempting install with ubi via mise because the repository owners seem to have named the linux binaries in a way that ubi doesn't expect.

The https://github.com/aws-cloudformation/cloudformation-guard repository publishes their 'linux' release binaries under the 'ubuntu' name for some reason, for example:

  • cfn-guard-v3-aarch64-ubuntu-latest.tar.gz
  • cfn-guard-v3-x86_64-ubuntu-latest.tar.gz

This causes the following error when attempting installation:

Failed to install with ubi 'ubi:aws-cloudformation/cloudformation-guard@3.1.2': could not find a release asset for this OS (linux) from cfn-guard-v3-aarch64-macos-latest.tar.gz, cfn-guard-v3-aarch64-ubuntu-latest.tar.gz, cfn-guard-v3-aarch64-windows-latest.tar.gz, cfn-guard-v3-i686-windows-latest.tar.gz, cfn-guard-v3-macos-latest.tar.gz, cfn-guard-v3-ubuntu-latest.tar.gz, cfn-guard-v3-windows-latest.tar.gz, cfn-guard-v3-x86_64-macos-latest.tar.gz, cfn-guard-v3-x86_64-ubuntu-latest.tar.gz, cfn-guard-v3-x86_64-windows-latest.tar.gz

We attempted using --matching-regex ubuntu but that gave the same error, and it's unclear if this would be a good solution as some of our users use macos.

We attempted to use the full URL (ie. https://github.com/aws-cloudformation/cloudformation-guard/releases/download/3.1.2/cfn-guard-v3-aarch64-ubuntu-latest.tar.gz) however our linux CICD runners are using linux aarch64 and most users local machines use linux x86_64 so it would be nice to still have ubi do the selection for os/architecture.

This issue seems similar to #79
Not sure what the right solution is and hoping you could advise on that.

Maybe this is something that could be solved with creative use of an existing flag, or maybe the regex in ubi could be updated.
Another interesting option would be giving a flag that allows users to set the regex for the any os, which would allow users to resolve these mismatches without upstream changes to ubi. Something like --rename-os linux=ubuntu or --rename-os macos=mac in the case of #79 .

Please let us know if we can provide any additional information. Thank you!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions