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

Avoid displaying "root" package when formatting terms #1871

Merged
merged 1 commit into from
Feb 22, 2024
Merged

Conversation

zanieb
Copy link
Member

@zanieb zanieb commented Feb 22, 2024

We don't have test coverage for this, but a term can reference an incompatibility with root and then we'll display the internal 'root' package to the user.

Raised in #1855

@zanieb zanieb added the error messages Messaging when something goes wrong label Feb 22, 2024
fn fmt_package(package: &PubGrubPackage) -> String {
match package {
PubGrubPackage::Root(Some(name)) => name.to_string(),
PubGrubPackage::Root(None) => "you_require".to_string(),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is the underscore here interntional?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nope dunno how that happened

@zanieb zanieb enabled auto-merge (squash) February 22, 2024 18:00
@zanieb zanieb merged commit 54ddd0b into main Feb 22, 2024
7 checks passed
@zanieb zanieb deleted the zb/root-incompat branch February 22, 2024 18:04
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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants