diff options
author | Florian Klink <flokli@flokli.de> | 2023-07-30T07·37+0200 |
---|---|---|
committer | clbot <clbot@tvl.fyi> | 2023-07-31T21·50+0000 |
commit | aa1982c0852de539eeddd742f7c41bd1a873a53c (patch) | |
tree | 8249d13193809bb889950e456dbe18e37063f294 /tvix/nix-compat/src/derivation/mod.rs | |
parent | 3f856d897713aca25156cc7d471c54845367bfb6 (diff) |
refactor(tvix/derivation): move comma writing business up r/6452
write_input_derivations shouldn't need to write a comma to separate it from the previous output from write_outputs. This is better placed in the function calling all of these helper functions. Change-Id: I9ccc440e4665b52369ef39e75151b9a29469ce48 Reviewed-on: https://cl.tvl.fyi/c/depot/+/8995 Reviewed-by: raitobezarius <tvl@lahfa.xyz> Autosubmit: flokli <flokli@flokli.de> Tested-by: BuildkiteCI
Diffstat (limited to 'tvix/nix-compat/src/derivation/mod.rs')
-rw-r--r-- | tvix/nix-compat/src/derivation/mod.rs | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tvix/nix-compat/src/derivation/mod.rs b/tvix/nix-compat/src/derivation/mod.rs index b416e745a565..6a1eee4a81c3 100644 --- a/tvix/nix-compat/src/derivation/mod.rs +++ b/tvix/nix-compat/src/derivation/mod.rs @@ -51,11 +51,23 @@ impl Derivation { write::write_char(writer, write::PAREN_OPEN)?; write::write_outputs(writer, &self.outputs)?; + write::write_char(writer, write::COMMA)?; + write::write_input_derivations(writer, &self.input_derivations)?; + write::write_char(writer, write::COMMA)?; + write::write_input_sources(writer, &self.input_sources)?; + write::write_char(writer, write::COMMA)?; + write::write_system(writer, &self.system)?; + write::write_char(writer, write::COMMA)?; + write::write_builder(writer, &self.builder)?; + write::write_char(writer, write::COMMA)?; + write::write_arguments(writer, &self.arguments)?; + write::write_char(writer, write::COMMA)?; + write::write_enviroment(writer, &self.environment)?; write::write_char(writer, write::PAREN_CLOSE)?; |