Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

tools separation #3808

Closed
rafaScalet opened this issue Dec 24, 2024 · 2 comments
Closed

tools separation #3808

rafaScalet opened this issue Dec 24, 2024 · 2 comments

Comments

@rafaScalet
Copy link

i think it would be pretty cool, if as in Node.JS, we had the separations of "dependencies":

[tools]
node = "lts"
pnpm = "latest"

[tools.dev]
lazygit = "latest"
github-cli = "latest"
httpie-go = "latest"

not like in the mise.local.toml , this tools can be in git, leaving the entire development environment ready and the production without useless tools

@syhol
Copy link
Contributor

syhol commented Dec 25, 2024

You can use Config Environments for this: https://mise.jdx.dev/configuration/environments.html

mise.toml

[tools]
node = "lts"
pnpm = "latest"

mise.dev.toml

[tools]
lazygit = "latest"
github-cli = "latest"
httpie-go = "latest"

And make sure your devs have MISE_ENV=dev


If you want the dev tools to be included by default you can flip it with disable_tools:

mise.toml

[tools]
node = "lts"
pnpm = "latest"
# You can add a comment here if you like to help separate the tools
lazygit = "latest"
github-cli = "latest"
httpie-go = "latest"

mise.production.toml

[settings]
disable_tools = [
  "lazygit",
  "github-cli",
  "httpie-go",
]

And make sure your prod has MISE_ENV=production

@rafaScalet
Copy link
Author

thanks @syhol, I had no idea it was possible to do that, I will look in the documentation for more details

Repository owner locked and limited conversation to collaborators Dec 26, 2024
@jdx jdx converted this issue into discussion #3819 Dec 26, 2024

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Projects
None yet
Development

No branches or pull requests

2 participants