Skip to content

Installing typos in Ubuntu Docker image #60

@oalders

Description

@oalders

I have to install my dot files in a bunch of slightly different scenarios, so I occasionally test installing them in a Docker container. I'm having an issue getting ubi to install typos. Not urgent or even important, but I figured I'd open an issue.

My docker-compose.yml includes

services:
  app:
    image: ubuntu:latest
    platform: linux/arm64/v8

Inside the container:

/root/local/bin/ubi --project crate-ci/typos --in /root/local/bin --debug
[ubi][DEBUG] Parsed --project crate-ci/typos = crate-ci / typos
[ubi][DEBUG] exe name = typos
[ubi][DEBUG] install path = /root/local/bin/typos
[reqwest::connect][DEBUG] starting new connection: https://api.github.com/
[ubi::picker][DEBUG] filtering out assets that do not have a valid extension
[ubi::picker][DEBUG] current OS = linux
[ubi::picker][DEBUG] matching assets against OS using (?i:(?:\b|_)linux(?:\b|_|32|64))
[ubi::picker][DEBUG] matching OS against asset name = typos-v1.24.1-aarch64-apple-darwin.tar.gz
[ubi::picker][DEBUG] does not match our OS
[ubi::picker][DEBUG] matching OS against asset name = typos-v1.24.1-x86_64-apple-darwin.tar.gz
[ubi::picker][DEBUG] does not match our OS
[ubi::picker][DEBUG] matching OS against asset name = typos-v1.24.1-x86_64-pc-windows-msvc.zip
[ubi::picker][DEBUG] does not match our OS
[ubi::picker][DEBUG] matching OS against asset name = typos-v1.24.1-x86_64-unknown-linux-musl.tar.gz
[ubi::picker][DEBUG] matches our OS
[ubi::picker][DEBUG] current CPU architecture = aarch64
[ubi::picker][DEBUG] matching assets against CPU architecture using (?ix)
        (?:
            \b
            |
            _
        )
        (?:
            aarch_?64
            |
            arm_?64
        )
        (?:
            \b
            |
            _
        )

[ubi::picker][DEBUG] there is only one asset that matches our OS
[ubi::picker][DEBUG] it matches a CPU architecture which is not ours
[ubi][ERROR] could not find a release for this OS and architecture (aarch64-unknown-linux-musl) from typos-v1.24.1-aarch64-apple-darwin.tar.gz, typos-v1.24.1-x86_64-apple-darwin.tar.gz, typos-v1.24.1-x86_64-pc-windows-msvc.zip, typos-v1.24.1-x86_64-unknown-linu
x-musl.tar.gz

Would it be reasonable to fall back to typos-v1.24.1-x86_64-unknown-linux-musl.tar.gz in this case?

Metadata

Metadata

Assignees

No one assigned

    Labels

    stalledNeeds more info or help from submitter to move forward

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions