Post
And disable install scripts except the ones you really explicitly want www.npmjs.com/package/@lav...
Re config: I'm not sure what it should look like since there's so many variations on what a git dep could be. I'm thinking opt-in for all git deps or opt-in for a specific url git dep because there's so many variations on what the url could be I think.
0 reposts0 likes
Most package managers already categorize the dependency by it's parsed spec (ex. npm's `npm-package-arg` or our internal `@vltpkg/spec`); we just need to create policies to gate installations based on that information. www.npmjs.com/package/npm-... www.npmjs.com/package/@vlt...
For @vlt.sh our policies will use DSS (docs.vlt.sh/cli/selectors). Most cmds already support a `--target` &/or `--scope` flag which use it too. `install` is the laggard since applying complex graph mods during resolution is hard™️ (note: we might just do it post resolution like we did for `build`).
ex. `vlt build ":type(registry)"` will only run the install scripts of packages that are registry deps. Our default for `build` is actually ":scripts:not(:built):not(:malware)" which doesn't catch git/remote deps since they aren't scanned by our metadata partner (Socket) - we can/should change that.