News for hackers. Stuff that matters.
Re:Use multiple Git SSH identities on a single computer by cornercasechase on Thursday July 20, 2023 @08:10AM (#36799351)
> npm install -g gitid

Please don’t write command line tools in javascript. I’d never install npm, yarn… on my system just to try a tool out. CLI tools are perfect for compiled languages so you can distribute a binary.

Re:Use multiple Git SSH identities on a single computer by dncornholio on Thursday July 20, 2023 @08:24AM (#36799489)
Not disagreeing, but isn't npm / yarn being installed basically the same as having make / cmake installed?

This package in question has no dependencies and I can read the source code, can't do that with a binary.

Though I agree, but for other reasons, this tool is a bit silly in JS because you also need node, and it's basically just moving files around.

Re:Use multiple Git SSH identities on a single computer by Zandikar on Thursday July 20, 2023 @08:46AM (#36799676)
No. Not everyone lives in Javascript world.
Re:Use multiple Git SSH identities on a single computer by westernpopular on Thursday July 20, 2023 @01:16PM (#36803601)
Not everyone lives in C world either
Re:Use multiple Git SSH identities on a single computer by sitzkrieg on Thursday July 20, 2023 @03:31PM (#36805557)
but some OS do by default-ish :D
Re:Use multiple Git SSH identities on a single computer by Zandikar on Friday July 21, 2023 @02:47AM (#36810747)
Correct. These are not mutually exclusive positions, and furthermore, this isn't so much to do with languages necessarily, it can be written in brainfuck or use some obscure compiler for all I care.

The issue is fragmenting tools between multiple package managers. That's a pain, and the source of my opposition to this concept here. Doubly so if they're language specific package managers (fine for development/in isolation, not for system wide user facing tools though).

Re:Use multiple Git SSH identities on a single computer by seszett on Thursday July 20, 2023 @08:48AM (#36799690)
> isn't npm / yarn being installed basically the same as having make / cmake installed?

Not really as npm and yarn are whole package managers that work in parallel to your distro's standard package manager. They pull various sources (that haven't been vetted by anyone except hopefully by the end programmer who told you to use npm install) from who knows where and install them either in your own home, or system-wide with -g like suggested here.

I would never use npm to install a system tool.

Re:Use multiple Git SSH identities on a single computer by tracker1 on Thursday July 20, 2023 @06:13PM (#36807464)
So like anything else that isn't in your package manager... including the latest version.
Re:Use multiple Git SSH identities on a single computer by tcfhgj on Thursday July 20, 2023 @12:26PM (#36802889)
I dont have (c)make installed
Re:Use multiple Git SSH identities on a single computer by Nzen on Thursday July 20, 2023 @08:45AM (#36799663)
Luckily, we are talking about an MIT licensed repository of source code that many of us could rewrite as a bash script, and open ourselves to complaints that it doesn't run on windows.

It looks like InderdeepBajwa, specifically, has tried to make a couple of projects in various languages: php, c++, go, python, javascript. So, the refrain 'write what you know' does not quite apply.

Re:Use multiple Git SSH identities on a single computer by rcme on Thursday July 20, 2023 @09:05AM (#36799868)
> Please don’t write command line tools in javascript.

This is such a rude thing to say to someone providing free software. If you want to write tools in the language of your choice, then you're free to do so.

Re:Use multiple Git SSH identities on a single computer by funcDropShadow on Thursday July 20, 2023 @11:19AM (#36801799)
How is this rude? Is disagreeing already rude? GP started that sentence with "Please" not with "YOU MUST NOT".
Re:Use multiple Git SSH identities on a single computer by rcme on Thursday July 20, 2023 @11:56AM (#36802399)
You realize saying "please" doesn't magically make it polite, right?
Re:Use multiple Git SSH identities on a single computer by joshmanders on Thursday July 20, 2023 @01:01PM (#36803407)
Please do not sell your products in your own store. I will never shop outside of Walmart just to get your product. Walmart is the perfect distributor of goods so you can get everything you need in one stop.

See how ridiculous it sounds now?

Re:Use multiple Git SSH identities on a single computer by funcDropShadow on Friday July 21, 2023 @08:59AM (#36813237)
That would mean the original request was unreasonable and not rude.
Re:Use multiple Git SSH identities on a single computer by bin_bash on Thursday July 20, 2023 @09:19AM (#36800022)
lol I see a lot of tools using npm to distribute binary CLIs written in compiled languages: https://blog.orhun.dev/packaging-rust-for-npm/

people are way more likely to be setup with npm than they are with cargo

Re:Use multiple Git SSH identities on a single computer by sitzkrieg on Thursday July 20, 2023 @03:30PM (#36805550)
cargo? how about winget or choco or any other examples on windows (worst case scenario)
Re:Use multiple Git SSH identities on a single computer by tracker1 on Thursday July 20, 2023 @06:12PM (#36807454)
What, no snap?
Re:Use multiple Git SSH identities on a single computer by nemetroid on Thursday July 20, 2023 @09:24AM (#36800084)
I’d never download some random person’s binary.
Re:Use multiple Git SSH identities on a single computer by GoblinSlayer on Thursday July 20, 2023 @04:04PM (#36805964)
https://www.gnu.org/software/automake/ I will just leave it here.