Skip to content

Comments

Improve display of resolution errors for workspace member conflicts with optional dependencies#6123

Merged
zanieb merged 2 commits intomainfrom
zb/optional-dep-err
Aug 16, 2024
Merged

Improve display of resolution errors for workspace member conflicts with optional dependencies#6123
zanieb merged 2 commits intomainfrom
zb/optional-dep-err

Conversation

@zanieb
Copy link
Member

@zanieb zanieb commented Aug 15, 2024

We have bad error messages for optional (extra) dependencies and development dependencies in workspaces:

  1. We weren't showing the full package, so we'd drop :dev and [extra] by accident
  2. We didn't include derived packages, e.g., member[extra] in tree processing collapse operation, so we'd include extra clauses like the ones we removed in Improve resolver error messages referencing workspace members #6092

Also

  • Reverts f0de4f7 — it turns out it wasn't quite correct and it didn't seem worth using the custom incompatibility anymore.
  • Fixes a bug in the display of package:dev which was not showing :dev for some variants (see 94d8020)

@zanieb zanieb added error messages Messaging when something goes wrong preview Experimental behavior labels Aug 15, 2024
@zanieb zanieb force-pushed the zb/optional-dep-err branch from edb2de7 to e765263 Compare August 15, 2024 17:30
@zanieb zanieb changed the title zb/optional dep err Improve display of resolution errors for workspace member conflicts with optional dependencies Aug 15, 2024
@zanieb zanieb marked this pull request as draft August 15, 2024 17:30
@zanieb zanieb force-pushed the zb/optional-dep-err branch from e765263 to 3cd2eb7 Compare August 15, 2024 18:02
@zanieb zanieb marked this pull request as ready for review August 15, 2024 18:11
@zanieb

This comment was marked as outdated.

@zanieb zanieb requested a review from charliermarsh August 15, 2024 18:35
@zanieb zanieb force-pushed the zb/optional-dep-err branch from 3cd2eb7 to 9e640fa Compare August 15, 2024 20:52
@zanieb zanieb force-pushed the zb/optional-dep-err branch from 9e640fa to 94d8020 Compare August 15, 2024 21:18
@zanieb zanieb merged commit 89efe24 into main Aug 16, 2024
@zanieb zanieb deleted the zb/optional-dep-err branch August 16, 2024 01:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

error messages Messaging when something goes wrong preview Experimental behavior

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants