File tree 1 file changed +8
-3
lines changed
1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -484,10 +484,10 @@ def coordinates_from_endpoints(endpoints):
484
484
485
485
486
486
def workspace_dir_from_coordinates (coordinates , cache_dir ):
487
- workspace = os .path .join (cache_dir , * coordinates [0 ])
488
- coord_string = '+' .join (['-' .join (c ) for c in coordinates [1 :]])
487
+ coord_string = '+' .join (['-' .join (c ) for c in coordinates ])
489
488
hash_path = hashlib .sha256 (coord_string .encode ('utf-8' )).hexdigest ()
490
- workspace = '+' .join ([workspace , hash_path ])
489
+ workspace = os .path .join (cache_dir , * coordinates [0 ], hash_path )
490
+
491
491
return workspace
492
492
493
493
@@ -545,6 +545,11 @@ def resolve_dependencies(endpoint_string,
545
545
546
546
os .makedirs (workspace , exist_ok = True )
547
547
548
+ # Write a file with the coordinates into the workspace dir
549
+ with open (os .path .join (workspace , 'coordinates.txt' ), 'w' ) as f :
550
+ for coordinate in coordinates :
551
+ f .write ('' .join ([':' .join (coordinate )] + ['\n ' ]))
552
+
548
553
# TODO should this be for all endpoints or only the primary endpoint?
549
554
if manage_dependencies :
550
555
dependency_management = '<dependency><groupId>{g}</groupId><artifactId>{a}</artifactId><version>{v}</version>' .format (
You can’t perform that action at this time.
0 commit comments