Skip to content

Upgrade dependencies to fix rust nightly regression#3334

Merged
stevenengler merged 1 commit intoshadow:mainfrom
stevenengler:fix-broken-nightly
May 24, 2024
Merged

Upgrade dependencies to fix rust nightly regression#3334
stevenengler merged 1 commit intoshadow:mainfrom
stevenengler:fix-broken-nightly

Conversation

@stevenengler
Copy link
Copy Markdown
Contributor

@stevenengler stevenengler commented May 22, 2024

Previously shadow wouldn't compile on nightly due to a rust compiler type inference change that breaks existing rust code, and they intend to stabilize this change in a couple of months. For us that breakage occurs in the time crate, so this PR upgrades all dependencies (including the time library) to fix the build error.

rust-lang/rust#99969 (comment)

rust-lang/rust#125319

The upgraded schemars version did change the cli output, specifically the displayed default values of Option arguments. I don't think there's much we can do about this, and it's not a big deal. I updated the test for the new cli output.

Edit: The schemars issue has now been fixed, so I upgraded the dependencies again. There is now no change to the cli output.

@stevenengler stevenengler self-assigned this May 22, 2024
@github-actions github-actions bot added the Component: Build Build/install tools and dependencies label May 22, 2024
@stevenengler stevenengler changed the title Upgrade dependencies to fix nightly build failure Upgrade dependencies to fix rust nightly regression May 22, 2024
@github-actions github-actions bot added the Component: Testing Unit and integration tests and frameworks label May 22, 2024
@stevenengler stevenengler requested review from robgjansen and removed request for robgjansen May 22, 2024 22:20
Previously shadow wouldn't compile on nightly due to a rust type inference
change that breaks existing rust code, and they intend to stabilize this
change. For us that breakage occurs in the time crate, so this PR upgrades all
dependencies (including the time library) to fix the build errors.

rust-lang/rust#99969 (comment)

rust-lang/rust#125319
@github-actions github-actions bot removed the Component: Testing Unit and integration tests and frameworks label May 23, 2024
@stevenengler stevenengler requested a review from robgjansen May 23, 2024 21:27
@stevenengler stevenengler merged commit e706c23 into shadow:main May 24, 2024
@stevenengler stevenengler deleted the fix-broken-nightly branch May 24, 2024 17:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Component: Build Build/install tools and dependencies

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants