summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKlaus Aehlig <klaus.aehlig@huawei.com>2024-07-12 11:44:12 +0200
committerKlaus Aehlig <klaus.aehlig@huawei.com>2024-07-12 13:50:31 +0200
commitcda960a4cd846ca97f90b172014fd02206eb74a0 (patch)
tree0d0671ad44c0142666bd1a395dbd0dae9bfc78ab
parente193d9f8074fa7ccf033af3df703f8a8644b289e (diff)
downloadrules-rust-cda960a4cd846ca97f90b172014fd02206eb74a0.tar.gz
just-import-cargo: sort "srcs"
... to have a more predictable result, allowing also for more meaningful diffs on updates.
-rwxr-xr-xbin/just-import-cargo.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/just-import-cargo.py b/bin/just-import-cargo.py
index fef36ea..9eb0d0a 100755
--- a/bin/just-import-cargo.py
+++ b/bin/just-import-cargo.py
@@ -294,7 +294,7 @@ def compute_srcs(root_dir: str, name: str, version: str) -> List[Any]:
with open(srcs_file, "w") as f:
print(json.dumps(srcs), file=f)
- return srcs
+ return sorted(srcs)
def to_underscore(x: str):