File tree Expand file tree Collapse file tree 2 files changed +7
-181
lines changed Expand file tree Collapse file tree 2 files changed +7
-181
lines changed Original file line number Diff line number Diff line change @@ -629,7 +629,9 @@ impl Lock {
629
629
} )
630
630
. filter_map ( super :: requires_python:: SimplifiedMarkerTree :: try_to_string) ,
631
631
) ;
632
- doc. insert ( "resolution-markers" , value ( fork_markers) ) ;
632
+ if !fork_markers. is_empty ( ) {
633
+ doc. insert ( "resolution-markers" , value ( fork_markers) ) ;
634
+ }
633
635
}
634
636
635
637
if !self . supported_environments . is_empty ( ) {
@@ -1973,7 +1975,7 @@ impl Package {
1973
1975
self . id . to_toml ( None , & mut table) ;
1974
1976
1975
1977
if !self . fork_markers . is_empty ( ) {
1976
- let wheels = each_element_on_its_line_array (
1978
+ let fork_markers = each_element_on_its_line_array (
1977
1979
self . fork_markers
1978
1980
. iter ( )
1979
1981
// TODO(ag): Consider whether `resolution-markers` should actually
@@ -1983,7 +1985,9 @@ impl Package {
1983
1985
. map ( |marker| SimplifiedMarkerTree :: new ( requires_python, marker. pep508 ( ) ) )
1984
1986
. filter_map ( super :: requires_python:: SimplifiedMarkerTree :: try_to_string) ,
1985
1987
) ;
1986
- table. insert ( "resolution-markers" , value ( wheels) ) ;
1988
+ if !fork_markers. is_empty ( ) {
1989
+ table. insert ( "resolution-markers" , value ( fork_markers) ) ;
1990
+ }
1987
1991
}
1988
1992
1989
1993
if !self . dependencies . is_empty ( ) {
You can’t perform that action at this time.
0 commit comments