Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Report a CargoWorkspace event #1030

Merged
merged 8 commits into from
Oct 19, 2024
Merged

Conversation

foresterre
Copy link
Owner

@foresterre foresterre commented Oct 18, 2024

The event contains the names (NB: not the package id's) of packages which were detected in the current cargo workspace.

Possibly must be sent optionally in the future, because we should also support non cargo workspaces.

Nothing quite happens with this event yet, except if you use --output-format json (then it will be serialized and logged).

ref #1023
ref #1026

The event contains the names (NB: not the package id's) of packages which were detected in the current cargo workspace.

Possibly must be sent optionally in the future, because we should also support non cargo workspaces.
@foresterre foresterre force-pushed the event_detected_cargo_workspace_packages branch from 4232eee to 7c100e7 Compare October 18, 2024 20:43
This works around some issues like:
- cargo metadata only works for cargo projects, which is fine for most  of  our defaults, but we only hard require rustup right now for compatibility check commands like find and verify
- an unwrap panic from within cargo metadata if it was given an invalid path

Yet, the current choice is a pragmatic one and may not account for all cases or handle all errors.
@foresterre foresterre merged commit e45483b into main Oct 19, 2024
14 checks passed
@foresterre foresterre deleted the event_detected_cargo_workspace_packages branch October 19, 2024 02:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant