From 50cc1d12f913f83aee9c5fd9ab59da6bf8a98098 Mon Sep 17 00:00:00 2001 From: Harmen Stoppels Date: Thu, 16 Mar 2023 10:30:52 +0100 Subject: [PATCH] Revert "minify spec.json in buildcache (#36138)" (#36156) This reverts commit 1a8eefe09b034f8dda564e60b5b1905f53958aa2. --- lib/spack/spack/binary_distribution.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/spack/spack/binary_distribution.py b/lib/spack/spack/binary_distribution.py index 327e6ab434..5ce7b62452 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(json.dumps(spec_dict)) + outfile.write(sjson.dump(spec_dict)) # sign the tarball and spec file with gpg if not unsigned: