Repository navigation
fix: add windows support for usage tool registry #8713
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
Changes from 2 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -1,14 +1,10 @@ | ||||||||||||||
| backends = [ | ||||||||||||||
| { full = "aqua:jdx/usage", platforms = [ | ||||||||||||||
| "linux", | ||||||||||||||
| "macos", | ||||||||||||||
| ] }, | ||||||||||||||
| "aqua:jdx/usage", | ||||||||||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. While removing the platform restrictions enables Windows support, it makes the To be more precise and avoid potential issues, it's better to explicitly list the supported platforms.
Suggested change
|
||||||||||||||
| { full = "asdf:mise-plugins/mise-usage", platforms = [ | ||||||||||||||
| "linux", | ||||||||||||||
| "macos", | ||||||||||||||
| ] }, | ||||||||||||||
| "cargo:usage-cli", | ||||||||||||||
| ] | ||||||||||||||
| description = "A specification for CLIs" | ||||||||||||||
| os = ["linux", "macos", "freebsd"] | ||||||||||||||
| test = { cmd = "usage --version", expected = "usage-cli {{version}}" } | ||||||||||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed
osfield instead of addingwindowsto itLow Severity
The PR description says "Add
windowsto the top-leveloslist" but theosfield was removed entirely instead of being changed toos = ["linux", "macos", "freebsd", "windows"]. Sinceis_supported_os()treats an emptyosslice as "all platforms supported," the tool is now advertised as available on every OS (e.g.,openbsd,netbsd), not just the four intended ones. Thecargo:usage-clifallback mitigates practical impact, but the tool's stated platform support is broader than intended.