-
Notifications
You must be signed in to change notification settings - Fork 790
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
bug: asdf local
fails to append to .tool-versions
properly if there is no trailing newline
#1299
Labels
Comments
Stratus3D
added a commit
that referenced
this issue
Jul 21, 2022
If a .tool-versions file did not end with a newline new tools and versions would get appended to the same line rather than properly added on a new line in the file Fixes #1299
Stratus3D
added a commit
to Stratus3D/asdf
that referenced
this issue
Jul 21, 2022
If a .tool-versions file did not end with a newline new tools and versions would get appended to the same line rather than properly added on a new line in the file Fixes asdf-vm#1299
Stratus3D
added a commit
that referenced
this issue
Jul 21, 2022
If a .tool-versions file did not end with a newline new tools and versions would get appended to the same line rather than properly added on a new line in the file Fixes #1299
Stratus3D
added a commit
that referenced
this issue
Jul 21, 2022
If a .tool-versions file did not end with a newline new tools and versions would get appended to the same line rather than properly added on a new line in the file Fixes #1299
Stratus3D
added a commit
that referenced
this issue
Jul 25, 2022
) If a .tool-versions file did not end with a newline new tools and versions would get appended to the same line rather than properly added on a new line in the file Fixes #1299
Fixed by #1310 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the Bug
asdf local <tool> latest
orasdf local <tool> <version>
fail to append.tool-versions
if there is no trailing newline in the file already.Steps to Reproduce
printf "%s" "golang 1.18.3" > .tool-versions
asdf local deno latest
cat .tool-versions
Expected Behaviour
With this file:
running
asdf local deno latest
gives the correct result.
Actual Behaviour
With this file:
running
asdf local deno latest
gives this incorrect result
Environment
asdf plugins affected (if relevant)
No response
The text was updated successfully, but these errors were encountered: