Skip to content

add support for mise.toml version file type#374

Closed
mruoss wants to merge 4 commits intoerlef:mainfrom
mruoss:mise-toml
Closed

add support for mise.toml version file type#374
mruoss wants to merge 4 commits intoerlef:mainfrom
mruoss:mise-toml

Conversation

@mruoss
Copy link
Contributor

@mruoss mruoss commented Aug 14, 2025

Description

Currently, only .tool-versions files types are supported as version-file. This PR adds an input version-file-type which can be set to mise.toml (defaults to .tool-versions) in order to parse a mise-en-place config file.

Copy link
Collaborator

@paulo-ferraz-oliveira paulo-ferraz-oliveira left a comment

Choose a reason for hiding this comment

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

Left 3 minor comments. Once those are solved and if CI's passing this should be good for merging. Sorry it took me so long to get back to this.

@mruoss mruoss force-pushed the mise-toml branch 3 times, most recently from e37f85b to ffcf1e2 Compare February 28, 2026 14:55
@paulo-ferraz-oliveira
Copy link
Collaborator

I have to leave now, but hopefully I'll get back to this later in the day. Cheers. And thanks for the update...

@mruoss
Copy link
Contributor Author

mruoss commented Feb 28, 2026

oh i did not notice you made commits. I had to rebase and resolve conflicts. I ran npm run build-dist just now and commited that. Hope that's okay.

Copy link
Collaborator

@paulo-ferraz-oliveira paulo-ferraz-oliveira left a comment

Choose a reason for hiding this comment

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

When CI's passing, I'll merge this, then release. Thanks much.

}
versions = parseVersionFile(versionFilePath)

const versionFileType = getInput('version-file-type', '.tool-versions')
Copy link
Collaborator

Choose a reason for hiding this comment

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

Tests are failing. I think we should not break the input name, but associate:

  • .tool-versions > asdf
  • mise.toml > mise

What do you say?

Copy link
Contributor Author

@mruoss mruoss Feb 28, 2026

Choose a reason for hiding this comment

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

Can we be certain that the file name for current users will always be .tool-versions? Besides that, mise.toml can also be .mise.toml etc...

I wanted the change be non-breaking for current users so I introduced a new input to be explicit but default to .tool-versions for backwards compatibility. wdyt?

@mruoss
Copy link
Contributor Author

mruoss commented Feb 28, 2026

I should maybe add this:

I see the PR got some love over the months. However, I have moved away from using this action towards using mise directly to install Elixir/Erlang on the CI (I've built my own re-usable workflows that I use in my projects). I think it's better that way as it's what you would do on your local env, too.
So I'm not sure people actually want this PR anymore and whether using this action with mise actually makes sense. But I'm happy to bring this to a mergeable state if it is wanted. Just saying that I'm not waiting for this anymore.


const versionFileType = getInput('version-file-type', '.tool-versions')
const versionFileType =
getInput('version-file-type', false) || '.tool-versions'
Copy link
Collaborator

Choose a reason for hiding this comment

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

Per https://github.com/erlef/setup-beam/blob/main/action.yml#L71, not only is the input named differently, but there's no default.

Copy link
Collaborator

Choose a reason for hiding this comment

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

What I mean with this is:

  1. you should keep reading version-file
  2. you shouldn't need this new input, since you're already making for a switch below, where you decide on the same values expected for version-file

Copy link
Contributor Author

@mruoss mruoss Mar 3, 2026

Choose a reason for hiding this comment

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

  1. you should keep reading version-file

but I do keep reading version-file, no? I didn't change that part

  1. you shouldn't need this new input, since you're already making for a switch below, where you decide on the same values expected for version-file

My point is: We're not in control of what is expected for version-file. Mise currently supports more than 7 different forms of mise.toml. Not sure about what asdf supports besides .tool-versions

Or how would the switch look like in your version?

@paulo-ferraz-oliveira
Copy link
Collaborator

So I'm not sure people actually want this PR anymore and whether using this action with mise actually makes sense. But I'm happy to bring this to a mergeable state if it is wanted.

Thank you for this.

I know of use cases where this'd be useful (I can't speak for the community at large, but when it was discussed before we were Ok to have this support in the action), which is being able to move from asdf to mise, for example; of simply having an alternative to asdf (as mise seems to be). I also have https://github.com/paulo-ferraz-oliveira/parse-tool-versions, with which you can parse the file and inject the versions into this one, but integrated is better IMO...

I understand you might not have time and/or want to deal with more of the PR, but lemme know and I can also take it to a mergeable state, in that case.

@dinokovac-river
Copy link
Contributor

So I'm not sure people actually want this PR anymore and whether using this action with mise actually makes sense. But I'm happy to bring this to a mergeable state if it is wanted.

Definitely something that's useful for my projects - thanks for all the work to get this ready!
I'd be happy to help finish this feature.

@mruoss
Copy link
Contributor Author

mruoss commented Mar 3, 2026

I'd be happy to help finish this feature.

Feel free to take over or I can help - but might not be super responsive (after all, this was open without response for months).

@paulo-ferraz-oliveira
Copy link
Collaborator

Closing in favor of #415. Thanks for all the initial work.

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.

3 participants