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

Check micromamba artifact signature #29

Open
westurner opened this issue Jan 16, 2025 · 3 comments
Open

Check micromamba artifact signature #29

westurner opened this issue Jan 16, 2025 · 3 comments

Comments

@westurner
Copy link

It should check the checksum and/or signature of the micromamba artifact.

References:

@westurner
Copy link
Author

  • download_with_curl() {
    local url=$1
    local destination=$2
    curl -sL "${url}" | tar -xj -C "${destination}" --strip-components=1 bin/micromamba
    }
    install_micromamba() {
    local version=$1
    local destination=$2
    local arch
    local url
    arch="$(uname -m)"
    if [ "$(uname -m)" = "x86_64" ]; then
    arch="64"
    fi
    url="https://micro.mamba.pm/api/micromamba/linux-${arch}/${version}"
    echo "Installing prerequisites for downloading micromamba..."
    ensure_download_prerequisites
    echo "Downloading micromamba from ${url}..."
    download_with_curl "${url}" "${destination}"
    echo "Micromamba download complete."
    }

@eitsupi
Copy link
Member

eitsupi commented Jan 16, 2025

How do you expect to check the correct hash?
Is downloading hash values from the internet better than not checking anything?

@westurner
Copy link
Author

westurner commented Jan 16, 2025 via email

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

2 participants