Skip to content

Conversation

@ruvasqm
Copy link

@ruvasqm ruvasqm commented Aug 15, 2025

Problem

When using a version by alias and, setting the --silent-if-unchanged flag you don't get a truly silent execution. Running several times with the same option and version should stop producing output after the first invocation:

$ fnm use --silent-if-unchanged default
Using Node for alias default
$ fnm use --silent-if-unchanged default
Using Node for alias default
$ fnm use --silent-if-unchanged default
Using Node for alias default
$ fnm use --silent-if-unchanged default
Using Node for alias default

Change

The path sent to comparison is, as I understand, a symlink. Following it and returning that instead seems to be just enough to fix the above issue.


Disclaimer

I don't have any means to test this other than:

$ cargo clean && cargo run -- use --silent-if-unchanged default

If there is any other way I can test this (without introducing excess into the codebase), please let me know.

@changeset-bot
Copy link

changeset-bot bot commented Aug 15, 2025

🦋 Changeset detected

Latest commit: 60a3a3d

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
fnm Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@vercel
Copy link

vercel bot commented Aug 15, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
fnm Ready Preview Comment Aug 15, 2025 10:06am

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.

1 participant