3 ms·
System package managers (at least apt & portage) have a whole bunch of hooks. I guess this is talking about language package managers. TFA is also a bit hazy o
by eqvinox 4mo ago
System package managers (at least apt & portage) have a whole bunch of hooks. I guess this is talking about language package managers.
TFA is also a bit hazy on what hooks exactly?
- captn3m0 4mo ago`PreInstall` mainly. But `PreFetch/PreBuild` also for source-repositories, such as AUR helpers. homebrew doesn't support hooks as a system package manager: https://github.com/ecosyste-ms/package-manager-hooks https://github.com/ecosyste-ms/package-manager-hooks as an example. I think the packaging ecosystem is varied enough that this should be left for the package managers to decide. Yarn allows dependency resolution and WebFetch overrides in its hooks for eg.
- eqvinox 4mo ago> `PreInstall` mainly. But `PreFetch/PreBuild` also for source-repositories, such as AUR helpers. I don't think this is detailed enough - what exactly should the hooks be able to do? Affect dependency resolution? Choice of versions? Are they per run or per package? Is something already downloaded so it can be inspected?
- fc417fc802 4mo agoThey should be able to do literally anything and everything. Treat it more like a packet in the linux networking stack, your filter chain gets run at some well defined point during the process and can query or change approximately anything.