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 from 'main'. failing on diesel-async as of 5-27-2023 #12235

Closed
FrankC01 opened this issue May 27, 2023 · 1 comment
Closed

Build from 'main'. failing on diesel-async as of 5-27-2023 #12235

FrankC01 opened this issue May 27, 2023 · 1 comment

Comments

@FrankC01
Copy link

Ubunto

Cloned repo
cd sui
cargo install --path crates/sui

Received:

   Compiling diesel-async v0.2.0
error[E0433]: failed to resolve: could not find `RowGatWorkaround` in `row`
  --> /home/fastfrank/.cargo/registry/src/6github.com-1ecc6299db9ec823/diesel-async-0.2.0/src/pg/row.rs:30:39
   |
30 |     ) -> Option<<Self as diesel::row::RowGatWorkaround<'b, diesel::pg::Pg>>::Field>
   |                                       ^^^^^^^^^^^^^^^^ could not find `RowGatWorkaround` in `row`

error[E0405]: cannot find trait `RowGatWorkaround` in module `diesel::row`
  --> /home/fastfrank/.cargo/registry/src/6github.com-1ecc6299db9ec823/diesel-async-0.2.0/src/pg/row.rs:16:23
   |
16 | impl<'a> diesel::row::RowGatWorkaround<'a, diesel::pg::Pg> for PgRow {
   |                       ^^^^^^^^^^^^^^^^ not found in `diesel::row`

Some errors have detailed explanations: E0405, E0433.
For more information about an error, try `rustc --explain E0405`.
@FrankC01 FrankC01 changed the title Build from 'main'. failing as of 5-27-2023 Build from 'main'. failing on diesel-async as of 5-27-2023 May 27, 2023
@tzakian
Copy link
Contributor

tzakian commented May 28, 2023

Hey @FrankC01,

Gave this a shot and was able to repro. Seems like the issue is that cargo install with a path does not respect Rust lockfiles unless the --locked flag is passed as well rust-lang/cargo#6983.

I was able to fix this by adding --locked to the command you have. So using the following command instead worked for me:

cargo install --path crates/sui --locked

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

No branches or pull requests

2 participants