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

deps: bump socket2 from 0.4.7 to 0.5.1 #3522

Closed
wants to merge 3 commits into from

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Feb 27, 2023

Bumps socket2 from 0.4.7 to 0.5.1.

Changelog

Sourced from socket2's changelog.

0.5.1

Added

Fixed

0.5.0

Changed

Added

  • Links to OS documentation to a lot of methods (rust-lang/socket2#319).
  • I/O-safety traits (rust-lang/socket2#325):
    • AsFd for Socket (Unix only).
    • From<OwnedFd> for Socket (Unix only).
    • From<Socket> for OwnedFd (Unix only).
    • AsSocket for Socket (Windows only).
    • From<OwnedSocket> for Socket (Windows only).
    • From<Socket> for OwnedSocket (Windows only).
  • Unix socket support on Windows (rust-lang/socket2#249).

... (truncated)

Commits

Dependabot compatibility score

You can trigger a rebase of this PR by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
> **Note** > Automatic rebases have been disabled on this pull request as it has been open for over 30 days.

Bumps [socket2](https://github.com/rust-lang/socket2) from 0.4.7 to 0.5.1.
- [Release notes](https://github.com/rust-lang/socket2/releases)
- [Changelog](https://github.com/rust-lang/socket2/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rust-lang/socket2/commits/v0.5.1)

---
updated-dependencies:
- dependency-name: socket2
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot added dependencies Pull requests that update a dependency file rust Pull requests that update Rust code labels Feb 27, 2023
thomaseizinger
thomaseizinger previously approved these changes Feb 27, 2023
@mxinden
Copy link
Member

mxinden commented Feb 28, 2023

Upgrade needs additional changes in libp2p-tcp and libp2p-mdns.

@thomaseizinger
Copy link
Contributor

I bumped MSRV for mdns and tcp. I do think we should consider that a breaking change so I am adding this to the v0.52 milestone.

@thomaseizinger thomaseizinger added this to the v0.52.0 milestone Mar 2, 2023
@thomaseizinger thomaseizinger marked this pull request as draft March 2, 2023 04:17
@mxinden
Copy link
Member

mxinden commented Mar 2, 2023

What is the benefit of the v0.52 milestone? Would we go through all changes of the milestone before the release, figure out the breaking changes, which crates they touch, and bump the versions accordingly?

How is that different to the ! in the conventional commit title?

I would prefer bumping the versions of libp2p-tcp and libp2p-mdns in this pull request directly. I am happy to do it. Let's discuss this first though.

@thomaseizinger
Copy link
Contributor

I started a discussion about this here: #3532

@thomaseizinger
Copy link
Contributor

thomaseizinger commented Mar 3, 2023

How is that different to the ! in the conventional commit title?

It is unfortunately effectively useless for our workspace because a single commit (from squashing a PR) might easily touch multiple crates and you thus lose the correlation of which crate touched by the commit the breaking change refers to.

Would we go through all changes of the milestone before the release, figure out the breaking changes, which crates they touch, and bump the versions accordingly?

Only breaking changes go into that milestone because 0.52 is the next "breaking change" release from 0.51.X's perspective.

I would prefer bumping the versions of libp2p-tcp and libp2p-mdns in this pull request directly. I am happy to do it. Let's discuss this first though.

The problem with this is that we give up on shipping features without breaking changes. Merging one breaking change attracts more breaking changes because "the damage has already been done". This way, we pile up features and features in master and only eventually cut a release.

If we hold off on merging breaking changes, I'd hope that we:

a) Release more often because master is by default not breaking
b) Are more hesitant in making breaking changes because they take longer to merge
c) Can plan and pool together breaking changes with more thought thus effectively making fewer of them

@thomaseizinger
Copy link
Contributor

thomaseizinger commented Mar 3, 2023

For example, I'd want to us to ship #3386 fairly soon without and finalize the whole connection management topic (with a few more PRs coming) without doing another breaking change.

@dependabot @github
Copy link
Contributor Author

dependabot bot commented on behalf of github Apr 17, 2023

A newer version of socket2 exists, but since this PR has been edited by someone other than Dependabot I haven't updated it. You'll get a PR for the updated version as normal once this PR is merged.

@thomaseizinger
Copy link
Contributor

@dependabot recreate

@dependabot @github
Copy link
Contributor Author

dependabot bot commented on behalf of github May 3, 2023

Superseded by #3873.

@dependabot dependabot bot closed this May 3, 2023
@dependabot dependabot bot deleted the dependabot/cargo/socket2-0.5.1 branch May 3, 2023 07:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file rust Pull requests that update Rust code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants