We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e5a39c5 commit b4e755aCopy full SHA for b4e755a
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.
@@ -484,7 +485,9 @@ def coordinates_from_endpoints(endpoints):
484
485
486
def workspace_dir_from_coordinates(coordinates, cache_dir):
487
workspace = os.path.join(cache_dir, *coordinates[0])
- workspace = '+'.join([workspace] + ['-'.join(c) for c in coordinates[1:]])
488
+ coord_string = '+'.join(['-'.join(c) for c in coordinates[1:]])
489
+ hash_path = hashlib.sha256(coord_string.encode('utf-8')).hexdigest()
490
+ workspace = '+'.join([workspace, hash_path])
491
return workspace
492
493
0 commit comments