#!/usr/bin/env bash

# Installing a registry short name should not inherit options from a config entry
# keyed by the resolved full backend name.
cat <<EOF >mise.toml
[tools]
"github:aquaproj/aqua" = { version = "2.0.0", asset_pattern = "definitely-not-a-real-aqua-asset" }
EOF

assert "mise install --force aqua@2.0.0"
assert "mise where aqua@2.0.0" "$MISE_DATA_DIR/installs/aqua/2.0.0"
