@@ -15,7 +15,7 @@ use petgraph::visit::EdgeRef;
15
15
use rustc_hash:: { FxHashMap , FxHashSet } ;
16
16
use serde:: Serializer ;
17
17
use toml_edit:: { value, Array , ArrayOfTables , InlineTable , Item , Table , Value } ;
18
- use tracing:: trace;
18
+ use tracing:: { debug , trace} ;
19
19
use url:: Url ;
20
20
21
21
use uv_cache_key:: RepositoryUrl ;
@@ -1310,15 +1310,15 @@ impl Lock {
1310
1310
let satisfied = metadata. is_some_and ( |metadata| {
1311
1311
match satisfies_requires_dist ( metadata, package, root) {
1312
1312
Ok ( SatisfiesResult :: Satisfied ) => {
1313
- trace ! ( "Static `Requires-Dist` for `{}` is up-to-date" , package. id) ;
1313
+ debug ! ( "Static `Requires-Dist` for `{}` is up-to-date" , package. id) ;
1314
1314
true
1315
1315
} ,
1316
1316
Ok ( ..) => {
1317
- trace ! ( "Static `Requires-Dist` for `{}` is out-of-date; falling back to distribution database" , package. id) ;
1317
+ debug ! ( "Static `Requires-Dist` for `{}` is out-of-date; falling back to distribution database" , package. id) ;
1318
1318
false
1319
1319
} ,
1320
1320
Err ( ..) => {
1321
- trace ! ( "Static `Requires-Dist` for `{}` is invalid; falling back to distribution database" , package. id) ;
1321
+ debug ! ( "Static `Requires-Dist` for `{}` is invalid; falling back to distribution database" , package. id) ;
1322
1322
false
1323
1323
} ,
1324
1324
}
@@ -4131,7 +4131,12 @@ fn normalize_url(mut url: Url) -> UrlString {
4131
4131
/// 2. Ensures that the lock and install paths are appropriately framed with respect to the
4132
4132
/// current [`Workspace`].
4133
4133
/// 3. Removes the `origin` field, which is only used in `requirements.txt`.
4134
- fn normalize_requirement ( requirement : Requirement , root : & Path ) -> Result < Requirement , LockError > {
4134
+ fn normalize_requirement ( mut requirement : Requirement , root : & Path ) -> Result < Requirement , LockError > {
4135
+ // Sort the extras and groups for consistency.
4136
+ requirement. extras . sort ( ) ;
4137
+ requirement. groups . sort ( ) ;
4138
+
4139
+ // Normalize the requirement source.
4135
4140
match requirement. source {
4136
4141
RequirementSource :: Git {
4137
4142
mut repository,
0 commit comments