Skip to content

registry: Add Racket minimal distribution configuration#9784

Merged
jdx merged 5 commits into
jdx:mainfrom
albertnetymk:add-racket
May 14, 2026
Merged

registry: Add Racket minimal distribution configuration#9784
jdx merged 5 commits into
jdx:mainfrom
albertnetymk:add-racket

Conversation

@albertnetymk

@albertnetymk albertnetymk commented May 11, 2026

Copy link
Copy Markdown
Contributor

Adds a registry shorthand for Racket using the aqua package racket/racket/minimal.
This installs the minimal Racket distribution from official racket-lang.org release artifacts and exposes racket and raco.
The aqua package was originally added in aquaproj/aqua-registry#53232 and later renamed/fixed in aquaproj/aqua-registry#53580 to use the canonical package name racket/racket/minimal with repo_owner = racket and repo_name = racket.

Verified locally:

mise ls-remote racket
mise install racket@9.1
mise x racket@9.1 -- racket --version
racket --version returns:
Welcome to Racket v9.1 [cs].

Adds a registry shorthand for Racket using the aqua package racket-lang.org/racket-minimal.
This installs the minimal Racket distribution from official racket-lang.org release artifacts and exposes racket and raco.

racket has been added to aqua in aquaproj/aqua-registry#53232.

@greptile-apps

greptile-apps Bot commented May 11, 2026

Copy link
Copy Markdown
Contributor

Greptile Summary

This PR adds a minimal registry entry (registry/racket.toml) that registers Racket as an installable tool in mise, backed by the aqua package manager with a simple version-check test.

  • Adds registry/racket.toml with backends, description, and test fields following the same conventions as every other registry entry in the repo.
  • The test command (racket --version) and expected output pattern (Welcome to Racket v{{version}}) correctly match the real Racket version banner (e.g. Welcome to Racket v9.1 [cs].).

Confidence Score: 3/5

The single changed file introduces a backend identifier (aqua:racket/racket/minimal) that does not match what the aqua standard registry actually ships — public release notes for aqua-registry v4.507.0 show the package as racket-lang.org/racket-minimal — so mise install racket would fail at runtime with the current value.

The aqua backend identifier in the file conflicts with the package name recorded in the aqua-registry release notes; the identifier as written would cause every install attempt to fail. This point has been raised in earlier review rounds but is not yet addressed in the code, which keeps the change in a broken state.

registry/racket.toml — the backends value needs to be reconciled with the actual aqua-registry package name before this can be merged safely.

Important Files Changed

Filename Overview
registry/racket.toml New 3-line registry entry for Racket using the aqua backend; the backend identifier aqua:racket/racket/minimal conflicts with what the aqua-registry release notes show as racket-lang.org/racket-minimal, which was already raised in prior review threads

Reviews (5): Last reviewed commit: "Merge branch 'main' into add-racket" | Re-trigger Greptile

@albertnetymk albertnetymk changed the title Add Racket minimal distribution configuration registry: Add Racket minimal distribution configuration May 11, 2026

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request adds a registry entry for the minimal Racket distribution, including its backend source and a version test. The reviewer suggested enhancing the configuration with aliases, file detection patterns, and idiomatic file definitions to improve tool discoverability and project detection within mise.

Comment thread registry/racket.toml Outdated
Comment on lines +1 to +3
backends = ["aqua:racket-lang.org/racket-minimal"]
description = "Minimal Racket distribution"
test = { cmd = "racket --version", expected = "Welcome to Racket v{{version}}" }

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

To improve the user experience and tool discoverability in mise, consider adding aliases, detect, and idiomatic_files to the registry configuration.

  • aliases: Allows users to install the tool using racket-minimal as well.
  • detect: Enables mise to suggest installing Racket when it detects .rkt or info.rkt files in a project.
  • idiomatic_files: Helps mise identify a directory as a Racket project when info.rkt is present.
Suggested change
backends = ["aqua:racket-lang.org/racket-minimal"]
description = "Minimal Racket distribution"
test = { cmd = "racket --version", expected = "Welcome to Racket v{{version}}" }
backends = ["aqua:racket-lang.org/racket-minimal"]
aliases = ["racket-minimal"]
description = "Minimal Racket distribution"
detect = ["info.rkt", "*.rkt"]
idiomatic_files = ["info.rkt"]
test = { cmd = "racket --version", expected = "Welcome to Racket v{{version}}" }

@jdx jdx enabled auto-merge (squash) May 11, 2026 17:32
@jdx jdx disabled auto-merge May 11, 2026 17:33
@jdx

jdx commented May 11, 2026

Copy link
Copy Markdown
Owner

looks super janky:

mise cleaning racket ✓ done
mise WARN  aqua package racket-lang.org/racket-minimal does not have repo_owner and/or repo_name.
mise WARN  aqua package racket-lang.org/racket-minimal does not have repo_owner and/or repo_name.
mise WARN  No versions found for racket
mise WARN  aqua package racket-lang.org/racket-minimal does not have repo_owner and/or repo_name.
mise WARN  No versions found for racket
mise WARN  aqua package racket-lang.org/racket-minimal does not have repo_owner and/or repo_name.
mise WARN  No versions found for racket
mise WARN  Failed to resolve tool version list for racket: [--runtime] racket@latest: no versions found for racket
mise WARN  no versions found for racket
mise racket: OK

Comment thread registry/racket.toml
@@ -0,0 +1,3 @@
backends = ["aqua:racket/racket/minimal"]

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 The aqua backend identifier is incorrect. The aqua registry package added in aquaproj/aqua-registry#53232 (also referenced in the PR description) is named racket-lang.org/racket-minimal, which means the mise identifier should be aqua:racket-lang.org/racket-minimal. The current value aqua:racket/racket/minimal does not correspond to any existing aqua package and will fail at install time. Existing domain-style aqua packages in this registry (e.g., aqua:atlassian.com/acli) confirm that the domain prefix must be included as-is.

Suggested change
backends = ["aqua:racket/racket/minimal"]
backends = ["aqua:racket-lang.org/racket-minimal"]

@albertnetymk

Copy link
Copy Markdown
Contributor Author

Updated after aquaproj/aqua-registry#53580

@jdx

jdx commented May 12, 2026

Copy link
Copy Markdown
Owner

make sure this actually works, I don't think it will based on this:

Run summary_dir="$RUNNER_TEMP/test-tool-0"
mise cleaning racket ✓ done
mise WARN  Latest version cannot be fetched: registry not available: no aqua-registry found for racket/racket/minimal
mise WARN  Remote versions cannot be fetched: registry not available: no aqua-registry found for racket/racket/minimal
mise WARN  No versions found for racket
mise WARN  Remote versions cannot be fetched: registry not available: no aqua-registry found for racket/racket/minimal
mise WARN  No versions found for racket
mise WARN  Remote versions cannot be fetched: registry not available: no aqua-registry found for racket/racket/minimal
mise WARN  No versions found for racket
mise WARN  Failed to resolve tool version list for racket: [--runtime] racket@latest: no versions found for racket
mise WARN  no versions found for racket
mise racket: OK

@jdx jdx marked this pull request as draft May 12, 2026 17:16
@albertnetymk

Copy link
Copy Markdown
Contributor Author

It's because vendor/aqua-registry/metadata.json pins on v4.510.0 while, racket is added in v4.511.1.

@jdx

jdx commented May 12, 2026

Copy link
Copy Markdown
Owner

we do not pull versions from the aqua registry

@albertnetymk

Copy link
Copy Markdown
Contributor Author

If I update metadata.json to use v4.511.1 and the corresponding registry.yml from aqua, mise ls-remote racket works as expected.

Comment thread registry/racket.toml
@@ -0,0 +1,3 @@
backends = ["aqua:racket/racket/minimal"]

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 The aqua backend identifier aqua:racket/racket/minimal does not match the package name in the aqua registry. The PR description links to aquaproj/aqua-registry#53232, which adds the package as racket-lang.org/racket-minimal. Other domain-prefixed aqua entries in this registry (e.g. aqua:atlassian.com/acli, aqua:getdbt.com/dbt-fusion) confirm the full domain must be included as-is. Using the wrong identifier will cause mise install racket to fail at runtime.

Suggested change
backends = ["aqua:racket/racket/minimal"]
backends = ["aqua:racket-lang.org/racket-minimal"]

@albertnetymk albertnetymk marked this pull request as ready for review May 14, 2026 08:48
@jdx jdx merged commit 8fd1ac9 into jdx:main May 14, 2026
33 checks passed
@albertnetymk albertnetymk deleted the add-racket branch May 14, 2026 21:12
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

Successfully merging this pull request may close these issues.

2 participants