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

Remove dependency warnings due to codec aliases in workspace dependencies #1655

Merged
merged 6 commits into from
Dec 19, 2023

Conversation

lemunozm
Copy link
Contributor

@lemunozm lemunozm commented Dec 18, 2023

Description

After some crates use workspace dependency, we are seeing a lot of warnings when compiling, this cargo issue. It seems that it can not have an alias dependency if using workspace dependencies. This PR adds support to use the original dependency name instead of the aliased one.

Changes and Descriptions

  • Remove unused workspace dependencies.
  • codec by parity-scale-codec in crates that are currently using workspace dependencies.
  • codec by parity-scale-codec in libs/* crates (for future workspace usage)
  • codec by parity-scale-codec in pallets/* crates (for future workspace usage)

@lemunozm lemunozm added Q0-trivial An issure which is similar to patching code. I3-annoyance The code behaves as expected, but "expected" is an issue. P5-soon Issue should be addressed soon. labels Dec 18, 2023
@lemunozm lemunozm self-assigned this Dec 18, 2023
NunoAlexandre
NunoAlexandre previously approved these changes Dec 18, 2023
Copy link
Contributor

@NunoAlexandre NunoAlexandre left a comment

Choose a reason for hiding this comment

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

wischli
wischli previously approved these changes Dec 18, 2023
Copy link
Contributor

@wischli wischli left a comment

Choose a reason for hiding this comment

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

Awesome, thanks a lot for this!

@lemunozm lemunozm dismissed stale reviews from wischli and NunoAlexandre via 6b57ce1 December 18, 2023 11:05
@lemunozm
Copy link
Contributor Author

Added the change to all pallets. I've done it automatically with a script, so maybe some line has become quite long.

Should now be ready to be merged!

@lemunozm lemunozm enabled auto-merge (squash) December 18, 2023 13:25
Copy link
Collaborator

@mustermeiszer mustermeiszer left a comment

Choose a reason for hiding this comment

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

Thanks! Nice clean, up!

@lemunozm
Copy link
Contributor Author

@cdamian I think we need yours too 🙏🏻

@mustermeiszer
Copy link
Collaborator

Force merging as @cdamian is on vacation and all others are approving!

@mustermeiszer mustermeiszer merged commit 6535d75 into main Dec 19, 2023
9 checks passed
@lemunozm lemunozm deleted the remove-dependency-warnings branch December 19, 2023 10:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
I3-annoyance The code behaves as expected, but "expected" is an issue. P5-soon Issue should be addressed soon. Q0-trivial An issure which is similar to patching code.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants