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

build: set resolver=1 for workspace #2976

Merged
merged 1 commit into from
Sep 7, 2023
Merged

Conversation

conorsch
Copy link
Contributor

@conorsch conorsch commented Sep 6, 2023

Our cargo actions were emitting a warning:

warning: some crates are on edition 2021 which defaults to `resolver = "2"`, but virtual workspaces default to `resolver = "1"`
note: to keep the current resolver, specify `workspace.resolver = "1"` in the workspace root's manifest
note: to use the edition 2021 resolver, specify `workspace.resolver = "2"` in the workspace root's manifest

Updating the workspace's Cargo.toml to force use of resolver v1 for the workspace. Setting v2 broke the "rust-docs" script, so hardcoding the current behavior to eliminate warnings.

See related docs: https://doc.rust-lang.org/edition-guide/rust-2021/default-cargo-resolver.html

@conorsch conorsch temporarily deployed to smoke-test September 6, 2023 17:17 — with GitHub Actions Inactive
Our cargo actions were emitting a warning:

    warning: some crates are on edition 2021 which defaults to `resolver = "2"`, but virtual workspaces default to `resolver = "1"`
    note: to keep the current resolver, specify `workspace.resolver = "1"` in the workspace root's manifest
    note: to use the edition 2021 resolver, specify `workspace.resolver = "2"` in the workspace root's manifest

Updating the workspace's Cargo.toml to force use of resolver v1 for the
workspace. Setting v2 broke the "rust-docs" script, so hardcoding the
current behavior to eliminate warnings.

See related docs: https://doc.rust-lang.org/edition-guide/rust-2021/default-cargo-resolver.html
@conorsch conorsch force-pushed the virtual-workspace-resolver-2 branch from c4766f2 to e3bbe33 Compare September 6, 2023 20:06
@conorsch conorsch temporarily deployed to smoke-test September 6, 2023 20:07 — with GitHub Actions Inactive
@conorsch conorsch changed the title build: set resolver=2 for workspace build: set resolver=1 for workspace Sep 6, 2023
@conorsch conorsch merged commit 654ad1b into main Sep 7, 2023
@conorsch conorsch deleted the virtual-workspace-resolver-2 branch September 7, 2023 00:28
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.

1 participant