Writing a package manager
(antonz.org)
from cm0002@lemmy.world to programming@programming.dev on 15 Jul 2025 14:12
https://lemmy.world/post/33004747
from cm0002@lemmy.world to programming@programming.dev on 15 Jul 2025 14:12
https://lemmy.world/post/33004747
threaded - newest
@cm0002
step 1: ask yourself, why am i writing a package manager where there are like 56 other ones out there
step 2: ok but really, is that a good enough reason
step 3: really?
step 4: no, it's not, stop
step 5: There are now 57 other ones out there lol
But none for SQLite extensions, which is what the article is about.
A lot are in the arch repos, and the rest in the AUR ¯\(ツ)/¯
<img alt="" src="https://sh.itjust.works/pictrs/image/e88966a1-d6a5-4d1f-8ced-f007255f14e7.gif">
First paragraphs in the article
Having a reason is not the same as having a good reason.
Hence my facetious “but why?” (I had read the article - they don’t justify it well).
Interesting way of handling project vs global scope:
Seems rather implicit, though, especially if the command output doesn’t specify which scope a package was installed in. If a user moves to a subdirectory, forgets they are there, and then tries to install a package, the package will unexpectedly install in global scope (though this particular version of the problem can be solved by also looking in parent directories).
Yeah I don’t like this either. So many chances for a mistake, be in the wrong dir, file misspelled, something not cloned correctly or anything else not setup as you think it might be and suddenly the package manage does something you don’t expect (like try to install globally rather then in a project or vice versa).
It’s absolutely horrible indeed. Confusing with where you are, accidentally thinking you doing one thing and doing another, versions conflicts or other things happening without understanding…
XDG dirs or nothing. Don’t touch my home directory.