File tree 2 files changed +9
-2
lines changed
2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -316,6 +316,13 @@ impl<'lock> RequirementsTxtExport<'lock> {
316
316
marker : reachability. remove ( & index) . unwrap_or_default ( ) ,
317
317
dependents : graph
318
318
. edges_directed ( index, Direction :: Incoming )
319
+ . sorted_by_key ( |edge| {
320
+ graph
321
+ . neighbors_directed ( edge. source ( ) , Direction :: Incoming )
322
+ . filter ( |& node| node == root)
323
+ . count ( )
324
+ == 0
325
+ } )
319
326
. filter_map ( |edge| {
320
327
let src = edge. source ( ) ;
321
328
if src == root {
Original file line number Diff line number Diff line change @@ -2961,12 +2961,12 @@ fn complex_conflict_markers() -> Result<()> {
2961
2961
# via torch
2962
2962
torch==2.6.0 ; sys_platform == 'darwin'
2963
2963
# via
2964
- # torchvision
2965
2964
# project
2965
+ # torchvision
2966
2966
torch==2.6.0+cpu ; sys_platform != 'darwin'
2967
2967
# via
2968
- # torchvision
2969
2968
# project
2969
+ # torchvision
2970
2970
torchvision==0.21.0 ; (platform_machine == 'aarch64' and sys_platform == 'linux') or sys_platform == 'darwin'
2971
2971
# via project
2972
2972
torchvision==0.21.0+cpu ; (platform_machine != 'aarch64' and sys_platform == 'linux') or (sys_platform != 'darwin' and sys_platform != 'linux')
You can’t perform that action at this time.
0 commit comments