Skip to content
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(golang-rewrite): Excessive new lines when using the asdf set command #1840

Closed
AlfredoRamos opened this issue Jan 12, 2025 · 0 comments · Fixed by #1841
Closed

bug(golang-rewrite): Excessive new lines when using the asdf set command #1840

AlfredoRamos opened this issue Jan 12, 2025 · 0 comments · Fixed by #1841
Labels

Comments

@AlfredoRamos
Copy link
Contributor

Describe the Bug

When running asdf set multiple times for the same plugin, it keeps adding unnecessary new lines.

Steps to Reproduce

  1. Run the following commands:

    asdf set nodejs 23.4.0
    asdf set nodejs 23.5.0
    asdf set nodejs 23.6.0
  2. See the content of .tool-versions:

    cat -A .tool-versions

Note: Added the -A flag in the cat command just for clarification about the new lines.

Expected Behaviour

nodejs 23.6.0$

Actual Behaviour

nodejs 23.6.0$
$
$

Environment

OS:
Linux arch-linux 6.12.9-arch1-1 #1 SMP PREEMPT_DYNAMIC Fri, 10 Jan 2025 00:39:41 +0000 x86_64 GNU/Linux

SHELL:
GNU bash, version 5.2.37(1)-release (x86_64-pc-linux-gnu)
Copyright (C) 2022 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>

This is free software; you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

BASH VERSION:
5.2.37(1)-release

ASDF VERSION:
v0.15.0-58a9e25

ASDF INTERNAL VARIABLES:
ASDF_DEFAULT_TOOL_VERSIONS_FILENAME=.tool-versions
ASDF_DATA_DIR=/home/alfredo/.asdf
ASDF_CONFIG_FILE=/home/alfredo/.asdfrc

ASDF INSTALLED PLUGINS:
nodejs    https://github.com/asdf-vm/asdf-nodejs.git 93bd217ba74f05080eebb7d8e1c146a385b01d7f

asdf plugins affected (if relevant)

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant