feat: support .tool-versions (asdf format) in tofu_version_file - #131
Merged
Merged
Conversation
Signed-off-by: somaz <genius5711@gmail.com>
somaz94
added a commit
to somaz94/somaz94
that referenced
this pull request
Jul 3, 2026
somaz94
marked this pull request as ready for review
July 10, 2026 02:54
yottta
reviewed
Jul 10, 2026
Yantrio
approved these changes
Jul 10, 2026
Signed-off-by: somaz <genius5711@gmail.com>
somaz94
force-pushed
the
feat/tool-versions-support
branch
from
July 10, 2026 09:18
f45554e to
b205273
Compare
yottta
approved these changes
Jul 10, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Extends the existing
tofu_version_fileinput to also accept an asdf-format.tool-versionsfile: theopentofu <version>line is used and other tool entries are ignored. A single-line.opentofu-versionfile keeps working unchanged (the parser falls back to the trimmed file content when noopentofuline is present).This revives the minimal approach from the earlier #118, which was closed before the feature was accepted in #40.
Validation (local):
npm test: semistandard lint clean, jest 43/43 pass (incl. a new.tool-versionstest)npm run build:dist/index.jsregenerated, diff limited to the parser changecloses: #40