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 @@ -521,10 +521,10 @@ def coordinates_from_endpoints(endpoints):
521
521
522
522
523
523
def workspace_dir_from_coordinates (coordinates , cache_dir ):
524
- workspace = os .path .join (cache_dir , * coordinates [0 ])
525
- coord_string = "+" .join (["-" .join (c ) for c in coordinates [1 :]])
524
+ coord_string = "+" .join (["-" .join (c ) for c in coordinates ])
526
525
hash_path = hashlib .sha256 (coord_string .encode ("utf-8" )).hexdigest ()
527
- workspace = "+" .join ([workspace , hash_path ])
526
+ workspace = os .path .join (cache_dir , * coordinates [0 ], hash_path )
527
+
528
528
return workspace
529
529
530
530
@@ -587,6 +587,11 @@ def resolve_dependencies(
587
587
588
588
os .makedirs (workspace , exist_ok = True )
589
589
590
+ # Write a file with the coordinates into the workspace dir
591
+ with open (os .path .join (workspace , "coordinates.txt" ), "w" ) as f :
592
+ for coordinate in coordinates :
593
+ f .write ("" .join ([":" .join (coordinate )] + ["\n " ]))
594
+
590
595
# TODO should this be for all endpoints or only the primary endpoint?
591
596
if manage_dependencies :
592
597
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