8000 Update scale-info to v2 by wigy-opensource-developer · Pull Request #626 · paritytech/parity-common · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Update scale-info to v2 #626

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

Closed
wants to merge 1 commit into from

Conversation

wigy-opensource-developer

We should get to a release of primitive-types that could be included in a Substrate version that depends on Scale v3. Yeah 😄

@ordian
Copy link
Member
ordian commented Feb 7, 2022

jFYI, this is a breaking change that will cascade like #623

@ordian ordian added the breaking-change Breaking change label Feb 7, 2022
@dvdplm
Copy link
Contributor
dvdplm commented Feb 7, 2022

@wigy-opensource-developer As @ordian points out, we'll need a major bump of primitive-types, which will cascade into something akin to this horror. :/

@ordian
Copy link
Member < 8000 /span>
ordian commented Feb 7, 2022

writing comments on Github at the same time is fun :)

@@ -15,7 +15,8 @@ impl-serde = { version = "0.3.1", path = "impls/serde", default-features = false
impl-codec = { version = "0.6.0", path = "impls/codec", default-features = false, optional = true }
impl-num-traits = { version = "0.1.0", path = "impls/num-traits", default-features = false, optional = true }
impl-rlp = { version = "0.3", path = "impls/rlp", default-features = false, optional = true }
scale-info-crate = { package = "scale-info", version = ">=0.9, <2", features = ["derive"], default-features = false, optional = true }
# See https://github.com/paritytech/parity-common/pull/556#issuecomment-872127496 why this is here:
Copy link
Member

Choose a reason for hiding this comment

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

this link doesn't explain why this is here, which is I think self-explanatory (it's a feature)

@wigy-opensource-developer
Copy link
Author

Sorry, it seems like we all have different scopes and some crates in the big-big DAG of cumulus dependencies created another version ripple here. Maybe we need a better way to navigate that big-big DAG.

surprised

@@ -15,7 +15,8 @@ impl-serde = { version = "0.3.1", path = "impls/serde", default-features = false
impl-codec = { version = "0.6.0", path = "impls/codec", default-features = false, optional = true }
impl-num-traits = { version = "0.1.0", path = "impls/num-traits", default-features = false, optional = true }
impl-rlp = { version = "0.3", path = "impls/rlp", default-features = false, optional = true }
scale-info-crate = { package = "scale-info", version = ">=0.9, <2", features = ["derive"], default-features = false, optional = true }
# See https://github.com/paritytech/parity-common/pull/556#issuecomment-872127496 why this is here:
scale-info-crate = { package = "scale-info", version = "2", features = ["derive"], default-features = false, optional = true }
Copy link
Member
@ordian ordian Feb 7, 2022

Choose a reason for hiding this comment

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

Ok, let's pull this YOLO trick once again

Suggested change
scale-info-crate = { package = "scale-info", version = "2", features = ["derive"], default-features = false, optional = true }
scale-info-crate = { package = "scale-info", version = ">=0.9, <3", features = ["derive"], default-features = false, optional = true }

Choose a reason for hiding this comment

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

<3 you meant? Also, isn't it better to exclude 0.9 and 1.0.0 now?

Copy link
Contributor

Choose a reason for hiding this comment

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

With this we'd only need a minor release of primitive-types yes?

Copy link
Member

Choose a reason for hiding this comment

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

Yes, I meant <3 and yes, this would be a patch release. And we don't need to release anything else. Only update substrate/polkadot/cumulus

Choose a reason for hiding this comment

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

Okay, I get it. Although MSRV and edition 2021 is already in the Cargo.toml which technically makes it a major release, right?

Copy link
Member

Choose a reason for hiding this comment

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

We already published that changes in #623.

Copy link
Member

Choose a reason for hiding this comment

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

Could you bump the version in this PR and update the change as well please?

Copy link
Member
@ordian ordian Feb 7, 2022

Choose a reason for hiding this comment

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

Ah, wait, scale-info also used in ethereum-types. I'm afraid, there's no getting away with breaking release then (sorry).

We can do the same trick with ethereum-types and ethbloom.

@ordian ordian removed the breaking-change Breaking change label Feb 7, 2022
@ordian
Copy link
Member
ordian commented Feb 7, 2022

closing in favor of #627

@ordian ordian closed this Feb 7, 2022
@ordian ordian deleted the wigy-upgrade-scale3 branch February 7, 2022 15:24
@wigy-opensource-developer
Copy link
Author

Wow. Thanks a lot. I had to be AFK for 3 hours and you took the bullet for me.

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.

3 participants
0