Skip to content

Commit

Permalink
add gate-type and stall-detection to binary name for proper caching
Browse files Browse the repository at this point in the history
  • Loading branch information
eriktaubeneck committed May 15, 2024
1 parent 999341c commit c15cf70
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion sidecar/app/query/ipa.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,9 +169,12 @@ class IPAHelperCompileStep(LoggerOutputCommandStep):
@classmethod
def build_from_query(cls, query: IPAHelperQuery):
manifest_path = query.paths.repo_path / Path("Cargo.toml")
target_path = query.paths.repo_path / Path(f"target-{query.paths.commit_hash}")
gate_type = query.gate_type
stall_detection = query.stall_detection
target_path = query.paths.repo_path / Path(
f"target-{query.paths.commit_hash}-{gate_type}"
f"{'-stall-detection' if stall_detection else ''}"
)
return cls(
manifest_path=manifest_path,
target_path=target_path,
Expand Down

0 comments on commit c15cf70

Please sign in to comment.