version-fox / version-fox/vfox

[BUG]: Ensure order when manipulating ` .tool-versions`

Open
#288 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Go
Stars
4k
Forks
157
Avg merge
1h 3m
Merged PRs (30d)
5

Description

          Will this also fix the random reordering that occurs in .tool-versions when rebuilding a devcontainer? The versions don't change, just for example if I have elixir and erlang installed, sometimes erlang will be on top, sometimes elixir. I can create a separate issue if this isn't related.

Originally posted by @ccavolt in https://github.com/version-fox/vfox/issues/277#issuecomment-2125147977

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing a devcontainer rebuild that rewrites .tool-versions with Elixir and Erlang installed, then trace the entry point that manipulates that file. Done means repeated rebuilds preserve a deterministic order when the versions themselves have not changed.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
cli, tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.