refactor(nix-compat/derivation): rename input derivation components
Match the naming in parse_input_derivations, call the keys "input_derivation", and the values "output_names". Change-Id: I7d1974819028f8ea543dc3ad78afb803ff9db865 Reviewed-on: https://cl.tvl.fyi/c/depot/+/10224 Reviewed-by: tazjin <tazjin@tvl.su> Autosubmit: flokli <flokli@flokli.de> Tested-by: BuildkiteCI
This commit is contained in:
parent
5fd42a9e70
commit
5855959d87
1 changed files with 3 additions and 3 deletions
|
@ -105,19 +105,19 @@ pub fn write_input_derivations(
|
||||||
) -> Result<(), io::Error> {
|
) -> Result<(), io::Error> {
|
||||||
write_char(writer, BRACKET_OPEN)?;
|
write_char(writer, BRACKET_OPEN)?;
|
||||||
|
|
||||||
for (ii, (input_derivation_path, input_derivation)) in input_derivations.iter().enumerate() {
|
for (ii, (input_derivation, output_names)) in input_derivations.iter().enumerate() {
|
||||||
if ii > 0 {
|
if ii > 0 {
|
||||||
write_char(writer, COMMA)?;
|
write_char(writer, COMMA)?;
|
||||||
}
|
}
|
||||||
|
|
||||||
write_char(writer, PAREN_OPEN)?;
|
write_char(writer, PAREN_OPEN)?;
|
||||||
write_field(writer, input_derivation_path.as_str(), false)?;
|
write_field(writer, input_derivation.as_str(), false)?;
|
||||||
write_char(writer, COMMA)?;
|
write_char(writer, COMMA)?;
|
||||||
|
|
||||||
write_char(writer, BRACKET_OPEN)?;
|
write_char(writer, BRACKET_OPEN)?;
|
||||||
write_array_elements(
|
write_array_elements(
|
||||||
writer,
|
writer,
|
||||||
&input_derivation
|
&output_names
|
||||||
.iter()
|
.iter()
|
||||||
.map(String::as_bytes)
|
.map(String::as_bytes)
|
||||||
.collect::<Vec<_>>(),
|
.collect::<Vec<_>>(),
|
||||||
|
|
Loading…
Reference in a new issue