Skip to content

Commit e575b5b

Browse files
committed
Fix an issue creating a mapping from lines
Signed-off-by: Yuxuan Dai <[email protected]>
1 parent fba0d72 commit e575b5b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

prelude/rust/build.bzl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1673,7 +1673,7 @@ def resolve_env_flags(
16731673
# Step 2: Read *-env-lines.txt, then create a mapping from it. For instance
16741674
# `{"USER": "john", "HOME": "/home/john"}`.
16751675
lines = artifacts[env_lines_file].read_string().strip().split("\n")
1676-
env_map = {k: v for k, v in zip(lines[:-1], lines[1:])}
1676+
env_map = {k: v for k, v in zip(lines[0::2], lines[1::2])}
16771677
# Step 3: Utilize 'process_env' to determine whether each environment variable
16781678
# is "plain" or "with path", then produce an *-env-flags.txt file
16791679
# containing environment variable flags suitable to pass to the

0 commit comments

Comments
 (0)