Skip to content

Commit

Permalink
fix(rust): strip quotes after correction
Browse files Browse the repository at this point in the history
  • Loading branch information
stevenj committed May 7, 2024
1 parent b6bd675 commit 6d7cbb4
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions earthly/rust/scripts/std_build.py
Original file line number Diff line number Diff line change
Expand Up @@ -253,24 +253,16 @@ def main():
# Fix arguments because of munging that can happen because of the rust builder +EXECUTE function
processed_args=[]
for arg in sys.argv[1:]:
print("???"+arg+"???")
print(arg.endswith('"'))
print(len(processed_args)>0)
if len(processed_args)>0:
print(processed_args[-1])
print('"' in processed_args[-1])
if arg.endswith('"') and len(processed_args) > 0 and '"' in processed_args[-1]:
processed_args[-1] += " " + arg
processed_args[-1].replace('"', '')
else:
processed_args.append(arg)

print("Processed args:"+str(processed_args))
# Replace sys.argv with the processed arguments
sys.argv = [sys.argv[0]] + processed_args

for arg in sys.argv[1:]:
print("..."+arg+"...")

parser = argparse.ArgumentParser(description="Rust build processing.")
parser.add_argument(
"--verbose",
Expand Down

0 comments on commit 6d7cbb4

Please sign in to comment.