Skip to content

Tool resolution ​

Before relgap can list versions or read release notes, it needs to know where a tool lives and how its tags read. Resolution turns the name you type, or the name a pin carries, into a tool spec: the repository and its host (GitHub unless the spec says host), the version rules, the release-note sources, the endoflife.date product and the OSV packages. relgap resolve prints that spec and where each field came from.

What you can type ​

InputExampleResolves through
a name or aliasterraform, tfthe layers below
a NAME_VERSION variableTERRAFORM_VERSIONthe name with underscores as hyphens, terraform
github:owner/repogithub:jdx/hkthe repository itself, or the tool that has it
github:owner/repo@prefixgithub:kubernetes/autoscaler@cluster-autoscaler-the repository, reading only the tags with that prefix
bitbucket:workspace/repobitbucket:acme-ws/tf-networkthe Bitbucket Cloud repository; its tags are the versions
gitlab:group/.../repogitlab:acme/platform/tf-dnsthe gitlab.com project; its tags are the versions, its releases the notes
gitlab:host/group/.../repogitlab:gitlab.acme.internal/infra/tf-vpca project on a host in gitlab.hosts
aqua:packageaqua:hashicorp/terraformthe embedded aqua index
tfprovider:namespace/nametfprovider:integrations/githubthe registries, then the Terraform registry
tfmodule:namespace/name/providertfmodule:terraform-aws-modules/vpc/awsthe Terraform registry
chart:repo/name, chart:name, chart:url/namechart:argo/argo-cdArtifact Hub
npm:packagenpm:prettierthe registries, then the npm registry
pypi:packagepypi:blackthe registries, then PyPI
image:name, image:name:<prefix>*<suffix>image:nginx:*-alpinethe image registry's tags; the source label's GitHub repository becomes the notes tool
action:owner/repo, action:owner/repo/pathaction:github/codeql-action/initthe action's github.com repository, github/codeql-action; no registry layer applies

When a registry knows the tool, every form gives the same result as its name: github:hashicorp/terraform and TERRAFORM_VERSION both resolve to terraform with its curated entry.

Layers ​

Each field comes from the highest layer that sets it, so a lower layer fills only what the higher ones leave empty:

  1. config: tools.<name>.repo, tools.<name>.host and aliases in your config file. tools.<name> sets only the repository and its host, which win over every registry.
  2. relgap registry: the curated entries embedded in relgap (the supported tools), or the newer copies relgap registry update downloaded.
  3. mise registry: mise registry --json when mise is on PATH, otherwise the embedded snapshot (registry snapshots). It adds aliases and the repository of the first aqua:, github: or ubi: backend.
  4. aqua registry: the embedded index of the aqua registry. It adds the repository, a tag prefix, and the tags universe for packages whose versions come from tags.
  5. default: the loose version scheme, the releases universe, no release line, and auto-discovery of release notes when no layer names sources.

A tool that only mise and aqua know still resolves, offline. It gets its repository and tag rules from them, and its notes from auto-discovery. It has no EOL or vulnerability data, because only a curated entry names an endoflife.date product and OSV packages.

Lookups outside the registries ​

tfprovider:, npm: and pypi: names are first matched against the registries, so a curated tool resolves without the network: tfprovider:hashicorp/aws matches the entry whose repository is hashicorp/terraform-provider-aws. A name no registry knows is looked up in the Terraform registry, the npm registry or PyPI, which name the source repository. chart: names always go to Artifact Hub. A chart takes no other tool's entry, because a chart's versions are not its application's. chart:name without a repository resolves only when one Artifact Hub repository has a chart of that name. chart:<url>/<name>, such as chart:https://charts.jetstack.io/cert-manager, names the chart by its Helm repository URL and resolves only through the Artifact Hub repository at that URL, through the gh-pages index of a GitHub Pages URL, or through the tags of an oci:// registry relgap reads images from. The short forms tables show, chart:<owner>/<repo>/<name> and chart:<registry>/<path>/<name>, resolve the same way.

A chart's versions come from its repository's tags when a tag prefix covers the newest version the chart lists. Some repositories tag every release once for all their charts: aws/eks-charts tags v0.0.252. Then the versions come from Artifact Hub, or from the Helm repository index, and the tool has the universe chart. outdated shows latest and behind, with - for the counts, and a digest lists the versions with a warning that says why it has no notes. Pin the application's own repository as well to read its release notes. A chart in an OCI registry whose source annotation names no GitHub repository has the universe chart with no repository at all.

An image: name lists the tags of the image's registry, and the tool has the universe image. Only tags with the name's tag pattern count: image:nginx:*-alpine reads 1.27.0-alpine as version 1.27.0 and skips 1.27.0 and 1.27.0-bookworm. relgap reads the manifest of the newest stable tag, then the linux/amd64 image of an index, then the image config, for the source label (org.opencontainers.image.source, then org.label-schema.vcs-url). When it names a GitHub repository, that repository resolves like github:owner/repo and becomes the tool's notes, and a digest of the image is that tool's digest over the same versions. Without one, the image has versions only, like a chart universe tool.

bitbucket: and gitlab: names need no lookup: they resolve to the repository on that host with the tags universe.

These lookups go through the HTTP cache like every other request. Network, privacy and tokens lists the hosts.

Guessing ​

A plain name that no layer knows is an error that suggests github:owner/repo, aqua:package or tools.<name>.repo. With --guess, relgap searches GitHub for the name instead. The repository whose name matches exactly and has the most stars wins, and the result is marked low-confidence with the other candidates listed. relgap digest, relgap resolve and relgap registry test take --guess. A guess is a starting point: check it with relgap resolve some-tool --guess, then put the repository in tools.<name>.repo.

Reading the result ​

The JSON form shows the input, how it matched, the merged spec and the provenance of each field:

sh
relgap resolve terraform --format json
json
{
  "schema_version": "1",
  "tool": "relgap",
  "version": "dev",
  "generated_at": "2026-11-12T12:00:00Z",
  "data": {
    "input": "terraform",
    "match": {
      "by": "name",
      "value": "terraform",
      "layer": "relgap registry"
    },
    "tool": {
      "name": "terraform",
      "aliases": [
        "tf"
      ],
      "repo": "hashicorp/terraform",
      "version": {
        "scheme": "semver",
        "tag_prefix": "v",
        "universe": "releases",
        "line": "none"
      },
      "sources": [
        {
          "kind": "changelog-file",
          "path_template": "CHANGELOG.md",
          "ref": "v{major}.{minor}",
          "heading": "^{version} \\("
        },
        {
          "kind": "gh-release",
          "ignore_sections": [
            "Previous Releases"
          ]
        }
      ],
      "eol": {
        "product": "terraform",
        "cycle": "{major}.{minor}"
      },
      "osv": [
        {
          "ecosystem": "Go",
          "name": "github.com/hashicorp/terraform"
        }
      ],
      "breaking_markers": [],
      "bin": []
    },
    "provenance": {
      "aliases": [
        "relgap registry"
      ],
      "eol": [
        "relgap registry"
      ],
      "name": [
        "relgap registry"
      ],
      "osv": [
        "relgap registry"
      ],
      "repo": [
        "relgap registry"
      ],
      "sources": [
        "relgap registry"
      ],
      "version.line": [
        "default"
      ],
      "version.scheme": [
        "relgap registry"
      ],
      "version.tag_prefix": [
        "relgap registry"
      ],
      "version.universe": [
        "relgap registry"
      ]
    },
    "mise_source": "snapshot",
    "relgap_source": "embedded"
  },
  "errors": []
}

Here every field but version.line comes from the curated entry, mise_source says the mise registry came from the snapshot, and relgap_source says the entry is the embedded one, not an updated copy. A scan names pins through the same layers without any lookup, so relgap pins stays offline; relgap outdated makes the Terraform registry and Artifact Hub lookups for tfprovider, tfmodule and chart pins when it compares them. Map unresolved pins and private tools shows what to do with a pin that resolves to nothing.