-
Notifications
You must be signed in to change notification settings - Fork 1
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
Attemp to fix Error: no dep
#43
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Assuming this has been tested to fix the CI issue the core change seems fine for now to get a fix in. I'll need to double check the root cause in future so we don't possibly just skip renamed dependencies.
src/prdoc.rs
Outdated
continue; | ||
} | ||
(Err(_), Err(_)) => { | ||
// strange, not found in both? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
May be an issue with dep renames not properly handled? E.g. foo = {version = "1", package = "bar"}
. I'll need to look into it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And what exactly is "dep renames not properly handled"? How should it be done correctly?
Ok, I change it here to throw error with exact message: 8eb07d5
So now, it won't fail in most cases when adding or removing dependencies, but it will fail in this specific corner case.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
aha, ok :), so continue/skip (I can put just some log there) or fail here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(Originally posted on the wrong account)
Sorry for the confusion, I was just commenting on the comment. Dependency renames are when the dependency has a package = and this exists under different names to the registry and local dependency tree. I'm just noting it as a possible issue that I'll look into in the future. It's not a user error,
aha, ok :), so continue/skip (I can put just some log there) or fail here?
I think skipping is fine for now if it fixes the CI. I'll look into it further when I get the chance.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And no log as the message implies there's user action to take when there's not.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The fix is helping in the sense that it fixes the
Out of curiosity @bkontur , did you find a workaround for the PR that failed initially with |
I think that failed CI semver does not block merging, so, no, I was not looking for any workaround, just this fix :) |
Yup, as long as you ran same thing ran in |
Closes: #42
This PR fixes two things:
Error: no dep
for (name, _) in deps {
- it iterates over and over the same stuff unnecessaryError: https://github.com/paritytech/polkadot-sdk/actions/runs/12237889294/job/34134815479?pr=6781
After some debugging, looks like that job is failing on added
sp-core
: