Support recursive extras (#1435)

## Summary

We had a guard in the resolve to avoid "self-dependencies" (as in
`gps3==0.33.3`), but this guard was _unintentionally_ filtering out
recursive extras.

Closes https://github.com/astral-sh/uv/issues/1342.

## Test Plan

Taken from https://github.com/astral-sh/uv/pull/1352.
This commit is contained in:
Charlie Marsh 2024-02-16 11:42:04 -05:00 committed by GitHub
parent e6c4c77ba1
commit f25781ff6c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 97 additions and 19 deletions

View file

@ -861,8 +861,8 @@ impl<'a, Provider: ResolverProvider> Resolver<'a, Provider> {
&metadata.requires_dist,
&self.constraints,
&self.overrides,
extra.as_ref(),
Some(package_name),
extra.as_ref(),
self.markers,
)?;