Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit a77a2b6

Browse files
committedApr 27, 2025··
Fix an issue creating a mapping from lines
Signed-off-by: Yuxuan Dai <yxdai@smail.nju.edu.cn>
1 parent 0f6b0ba commit a77a2b6

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)
Please sign in to comment.