Skip to content

registry: support usage on FreeBSD#5973

Merged
jdx merged 2 commits into
jdx:mainfrom
risu729:usage-freebsd
Aug 11, 2025
Merged

registry: support usage on FreeBSD#5973
jdx merged 2 commits into
jdx:mainfrom
risu729:usage-freebsd

Conversation

@risu729

@risu729 risu729 commented Aug 11, 2025

Copy link
Copy Markdown
Contributor

No description provided.

Copilot AI review requested due to automatic review settings August 11, 2025 01:15

Copilot AI 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.

Pull Request Overview

This PR adds FreeBSD support for the usage tool in the registry configuration. The change addresses the issue that prebuilt binaries are not available for FreeBSD, requiring the tool to be built from source instead.

  • Restricts prebuilt binary backends to Linux and macOS only
  • Adds FreeBSD to the supported operating systems list
  • Ensures FreeBSD users can still install the tool via the Cargo backend

Comment thread registry.toml
"aqua:jdx/usage",
"ubi:jdx/usage",
"asdf:jdx/mise-usage",
# prebuilt binaries are not available for FreeBSD

Copilot AI Aug 11, 2025

Copy link

Choose a reason for hiding this comment

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

[nitpick] The comment could be more specific about why prebuilt binaries are unavailable for FreeBSD. Consider clarifying whether this is due to upstream not providing FreeBSD binaries or a technical limitation.

Suggested change
# prebuilt binaries are not available for FreeBSD
# prebuilt binaries are not available for FreeBSD because upstream does not provide FreeBSD binaries

Copilot uses AI. Check for mistakes.
@jdx jdx merged commit 62b40c9 into jdx:main Aug 11, 2025
22 checks passed
@risu729 risu729 deleted the usage-freebsd branch August 11, 2025 04:03
jdx pushed a commit that referenced this pull request Aug 11, 2025
### 📦 Registry

- add bob
([aqua:MordechaiHadad/bob](https://github.com/MordechaiHadad/bob)) by
[@TyceHerrman](https://github.com/TyceHerrman) in
[#5914](#5914)
- support usage on FreeBSD by [@risu729](https://github.com/risu729) in
[#5973](#5973)
- filter out installer for podman by
[@risu729](https://github.com/risu729) in
[#5974](#5974)
- use pipx aqua backend by [@itochan](https://github.com/itochan) in
[#5971](#5971)

### 📚 Documentation

- add documentation for os field in tool configuration by
[@jdx](https://github.com/jdx) in
[#5947](#5947)

### Chore

- **(ci)** accept @ in regular expressions for new registry PR titles by
[@mst-mkt](https://github.com/mst-mkt) in
[#5969](#5969)
- fix registry test filter by [@risu729](https://github.com/risu729) in
[#5942](#5942)
- fix registry test by [@risu729](https://github.com/risu729) in
[#5953](#5953)

### New Contributors

- @itochan made their first contribution in
[#5971](#5971)
- @mst-mkt made their first contribution in
[#5969](#5969)
@paour

paour commented Aug 12, 2025

Copy link
Copy Markdown

I tried mise 2025.8.8 (installed with cargo), then ran mise install usage, but got the following error:

❯ mise install usage
mise ERROR Failed to install tool: usage@latest

Individual error details:
  1. usage@latest:
     Error {
         msg: "failed to install ubi:jdx/usage@2.2.2",
         source: "Failed to install with ubi 'ubi:jdx/usage@2.2.2': HTTP status client error (404 Not Found) for url (https://api.github.com/repos/jdx/usage/re
     }
mise ERROR Run with --verbose or MISE_VERBOSE=1 for more information

❯ mise doctor
version: 2025.8.8 freebsd-x64 (2025-08-12)
activated: yes
shims_on_path: no
self_update_available: yes

build_info:
  Target: x86_64-unknown-freebsd
  Features: DEFAULT, NATIVE_TLS, SELF_UPDATE
  Built: Tue, 12 Aug 2025 10:27:27 +0000
  Rust Version: rustc 1.88.0 (6b00bc388 2025-06-23) (built from a source tarball)
  Profile: release

shell:
  /usr/local/bin/zsh
  zsh 5.9 (amd64-portbld-freebsd14.2)

aqua:
  baked in registry tools: 1936

dirs:
  cache: ~/.cache/mise
  config: ~/.config/mise
  data: ~/.local/share/mise
  shims: ~/.local/share/mise/shims
  state: ~/.local/state/mise

config_files:
  ~/.config/mise/config.toml

ignored_config_files: (none)

backends:
  aqua
  asdf
  cargo
  core
  dotnet
  gem
  github
  gitlab
  go
  npm
  pipx
  spm
  http
  ubi
  vfox

plugins:

toolset:
  core:go@1.24.6

path:
  ~/.local/share/mise/installs/go/1.24.6/bin
  ~/.atuin/bin
  ~/bin
  ~/.cargo/bin
  ~/.atuin/bin
  ~/bin
  ~/.cargo/bin
  /sbin
  /bin
  /usr/sbin
  /usr/bin
  /usr/local/sbin
  /usr/local/bin
  ~/bin

env_vars:
  MISE_SHELL=zsh

settings:
  disable_backends  ["aqua"] ~/.config/mise/config.toml

3 problems found:

1. plugin packer is not installed

2. plugin terraform is not installed

3. plugin terragrunt is not installed

Is there anything I can try from my install?

@risu729

risu729 commented Aug 13, 2025

Copy link
Copy Markdown
Contributor Author

I think it's a bug, I'll have a look.

@risu729

risu729 commented Aug 13, 2025

Copy link
Copy Markdown
Contributor Author

It was my mistake. Fixed in #6007.

jdx pushed a commit that referenced this pull request Aug 13, 2025
Follow up for #5973.

Sorry, I didn't remember we need to use `platforms` instead of `os`
here.
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.

4 participants