We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9c8ad07 commit 68e16e8Copy full SHA for 68e16e8
jgo/jgo.py
@@ -10,6 +10,7 @@
10
import sys
11
import traceback
12
import zipfile
13
+import hashlib
14
15
# A script to execute a main class of a Maven artifact
16
# which is available locally or from Maven Central.
@@ -521,7 +522,9 @@ def coordinates_from_endpoints(endpoints):
521
522
523
def workspace_dir_from_coordinates(coordinates, cache_dir):
524
workspace = os.path.join(cache_dir, *coordinates[0])
- workspace = "+".join([workspace] + ["-".join(c) for c in coordinates[1:]])
525
+ coord_string = "+".join(["-".join(c) for c in coordinates[1:]])
526
+ hash_path = hashlib.sha256(coord_string.encode("utf-8")).hexdigest()
527
+ workspace = "+".join([workspace, hash_path])
528
return workspace
529
530
0 commit comments