summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHarmen Stoppels <harmenstoppels@gmail.com>2023-03-15 21:54:03 +0100
committerGitHub <noreply@github.com>2023-03-15 16:54:03 -0400
commit1a8eefe09b034f8dda564e60b5b1905f53958aa2 (patch)
tree36fd1dd19adb2bc79d956b3c0c504fb413ff59cf
parent85d51bfd9a3168f181388421c1d22c8678ecaff9 (diff)
downloadspack-1a8eefe09b034f8dda564e60b5b1905f53958aa2.tar.gz
spack-1a8eefe09b034f8dda564e60b5b1905f53958aa2.tar.bz2
spack-1a8eefe09b034f8dda564e60b5b1905f53958aa2.tar.xz
spack-1a8eefe09b034f8dda564e60b5b1905f53958aa2.zip
minify spec.json in buildcache (#36138)
saves about 50% of data, which is significant for hundreds of thousands of spec.json files in our buildcaches.
-rw-r--r--lib/spack/spack/binary_distribution.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/spack/spack/binary_distribution.py b/lib/spack/spack/binary_distribution.py
index 5ce7b62452..327e6ab434 100644
--- a/lib/spack/spack/binary_distribution.py
+++ b/lib/spack/spack/binary_distribution.py
@@ -1343,7 +1343,7 @@ def _build_tarball_in_stage_dir(
spec_dict["buildinfo"] = buildinfo
with open(specfile_path, "w") as outfile:
- outfile.write(sjson.dump(spec_dict))
+ outfile.write(json.dumps(spec_dict))
# sign the tarball and spec file with gpg
if not unsigned: