-
-
Notifications
You must be signed in to change notification settings - Fork 13
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
Document sv
command name collision with runit
#259
Comments
a little more information about runit would have been nice. It looks like it is a mostly non-standard init for unix/linux https://smarden.org/runit/ , as such very few users are using it. The larger issue here seems to be that |
I can't reproduce the behavior where edit: Ah. I can if the binary is in the same directory as edit again: |
Had a run-in with this while authoring: antfu-collective/package-manager-detector#15 for
To execute local binaries only with Not sure if this is something that needs to be explicitly called out in the docs though. This issue could serve as an easily searchable solution. If we had an FAQ section in the docs, I guess it can go there too. |
I think this could be enough of an edge case to just ignore it. But it could fit in an FAQ section |
Quite frankly, I don't see too much of an issue just to say to write the documentation as
A very small amount of work for less headaches all around down the line. |
Worth noting that Void Linux uses I wonder, why this tool was named |
It was called |
I found I filed oven-sh/bun#15427 as a request for bun |
Are there any checks within npx/bunx for system packages of the same name?
If not, I think the better solution would either be to incorporate that or
always expect to run remotely downloaded binaries within them, which would
require pull requests on those packages. I’m not sure if there’s really any
benefit to just calling local packages at all when you call npx/bunx since
both attempt to refresh the remote package when called, so it feels like
assuming whatever is pulled remotely is the only binary an sh session will
find is a major oversight, and probably doesn’t just affect Void/runit
users.
…On Tue, Nov 26, 2024 at 14:02 Ben McCann ***@***.***> wrote:
bunx and npx are the only ones that (annoyingly) use the same command to
execute local and remote binaries. They both prioritize locally installed
binaries over fetching the remote package if a version specifier is
omitted. Meanwhile, yarn and pnpm fetches the package every time with yarn
dlx and pnpm dlx (pnpx being the alias for this).
I found npx -c, which appears only executes the local package. We should
probably update package-manager-detector to use that for local execution.
But I guess what we want in this issue is the reverse where we do only
remote execution. Can anyone check if npx -p sv helps in this case?
I filed oven-sh/bun#15427 <oven-sh/bun#15427>
as a request for bun
—
Reply to this email directly, view it on GitHub
<#259 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AIH4NJSDOZ3EZ42QORLLXID2CTAUJAVCNFSM6AAAAABQ6GPSOWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKMBRG4YTEMJUGI>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
The
sv
command is the same as the one used by runit and therefore runningnpx sv
will not actually run the Svelte CLI and you will get a very confusing error message instead:Running the CLI requires running it as, for example,
npx sv@latest
, this is not a huge problem but might be worth mentioning in the docs, for example in the "Creating a project" section, to avoid problems and unnecessary support requests.The text was updated successfully, but these errors were encountered: