!djTaTBQyWEPRQxrPTb:nixos.org

Nixpkgs Architecture Team

236 Members
https://github.com/nixpkgs-architecture, weekly public meetings on Wednesday 15:00-16:00 UTC at https://meet.jit.si/nixpkgs-architecture52 Servers

Load older messages


SenderMessageTime
2 Aug 2022
@j-k:matrix.orgj-kMy only worry is everyone accepts bash, g12:00:01
@j-k:matrix.orgj-k * https://github.com/bats-core/bats-core12:00:13
@infinisil:matrix.orginfinisilNeat! We should consider this as an option too12:01:10
@j-k:matrix.orgj-kMy main worry with having the lowest level of nixpkgs, and similarly the rest of nixpkgs, using something other than bash is bash is well accepted, getting people to be happy with a different tool can be extra onboarding friction12:01:25
@infinisil:matrix.orginfinisilI believe most users won't have to interact with bash directly12:02:21
@infinisil:matrix.orginfinisilAn estimated 95% of packages don't rely on bash-specifics12:02:45
@infinisil:matrix.orginfinisilAs in, the packages Nix expression12:03:00
@j-k:matrix.orgj-kit's not about interaction, its about tool ingestion. People are finally cluing up on supply-chain security and actually reviewing they programs they depend on12:03:20
@infinisil:matrix.orginfinisilDoes bash have an advantage there?12:04:21
@infinisil:matrix.orginfinisilE.g. one of the alternatives that has been considered is Lua12:04:43
@j-k:matrix.orgj-kI don't think there's a single organization on the planet that would have to go out of their way to approve bash. everyone accepts it as a dependency of something12:05:11
@infinisil:matrix.orginfinisilYou do have a point there12:05:54
@j-k:matrix.orgj-kcurrently you'd just need to say, "we need to onboard nix, the rest is likely onboarded: stdenv tools which are pretty standard everywhere (core-utils, gcc), fetchers that use git & curl". Adding in 1 extra odity is probably not a big blocker but it is another blocker12:08:03
@infinisil:matrix.orginfinisilThough bash is very easy to write insecurely, which makes me think that companies should be more willing to accept a safer language12:08:27
@melkor333:matrix.orgMelkor333I would so want to recommend oil shell (which tries very hard to be a sane upgrade path) but that would get us back to the security chain problem12:09:20
@melkor333:matrix.orgMelkor333*upgrade path from bash12:09:33
@qyliss:fairydust.spaceAlyssa RossI think trying to optimise for box ticking by hypothetical companies is not going to be productive12:09:44
@j-k:matrix.orgj-kis it hypothetical if some of the clients I consult for are actually like this?12:10:30
@infinisil:matrix.orginfinisilActually we don't really need to be worried about that very much, since nix runs in a sandbox anyways12:10:41
@infinisil:matrix.orginfinisil * Actually we don't really need to be worried about that very much, since nix runs builders in a sandbox anyways12:11:18
@j-k:matrix.orgj-kyou can't just run anything you want in a sandbox because you care about the output12:11:45
@qyliss:fairydust.spaceAlyssa Ross(IMO it's also very unlikely the Nix sandbox would stand up to truly malicious code)12:12:10
@infinisil:matrix.orginfinisil
In reply to @j-k:matrix.org
you can't just run anything you want in a sandbox because you care about the output
Ah right..
12:12:37
@qyliss:fairydust.spaceAlyssa Rosslet me revise my statement then, since the companies are not hypothetical12:14:38
@qyliss:fairydust.spaceAlyssa RossI think trying to optimise for box ticking is not going to be productive12:14:44
@infinisil:matrix.orginfinisilHehe12:15:08
@infinisil:matrix.orginfinisilWe do need to keep that in mind, but yes I don't think this is a blocker at all for using something other than bash12:15:33
@qyliss:fairydust.spaceAlyssa RossIf we can deliver more value by using a better tool, we can presumably justify that tool12:16:01
@j-k:matrix.orgj-k yes we can totally go for oil if it adds significant value. it doesn't look like oil itself has many dependencies either. just something to consider 12:16:16
@qyliss:fairydust.spaceAlyssa RossOne thing you might find quite alarming about Oil is that it has a self-maintained Python 2 fork!12:16:37

Show newer messages


Back to Room ListRoom Version: 9