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

Cargo Install sea-orm-cli error caused by sqlx-core #2380

Closed
tbar4 opened this issue Oct 4, 2024 · 4 comments
Closed

Cargo Install sea-orm-cli error caused by sqlx-core #2380

tbar4 opened this issue Oct 4, 2024 · 4 comments

Comments

@tbar4
Copy link

tbar4 commented Oct 4, 2024

Description

When using cargo install sea-orm-cli for versions 1.0.0 and 1.0.1 I get an error for the sqlx-core crate as follows:

       error[E0308]: mismatched types
       --> /home/server/.cargo/registry/src/index.crates.io-6f17d22bba15001f/sqlx-core-0.7.4/src/logger.rs:112:29
       |
109 |                         sqlformat::format(
       |                         ----------------- arguments to this function are incorrect
...
112 |                             sqlformat::FormatOptions::default()
       |                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `&FormatOptions<'_>`, found `FormatOptions<'_>`
       |
       note: function defined here
           --> /home/server/.cargo/registry/src/index.crates.io-6f17d22bba15001f/sqlformat-0.2.7/src/lib.rs:18:8
       |
18   | pub fn format(query: &str, params: &QueryParams, options: &FormatOptions) -> String {
       |        ^^^^^^
       help: consider borrowing here
       |
112 |                             &sqlformat::FormatOptions::default()
       |                             +

For more information about this error, try `rustc --explain E0308`.
error: could not compile `sqlx-core` (lib) due to 1 previous error

I am assuming that this is anactual issue in sqlx-core and will be creating an issue there, too, but wanted to highlight it is preventing installing on my machine.

Steps to Reproduce

  1. Running cargo install sea-orm-cli in Warp terminal in bash

System info

uname -a

Linux server 6.1.0-25-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.106-3 (2024-08-26) x86_64 GNU/Linux

lscpu
Architecture: x86_64
CPU op-mode(s): 32-bit, 64-bit
Address sizes: 48 bits physical, 48 bits virtual
Byte Order: Little Endian
CPU(s): 12
On-line CPU(s) list: 0-11
Vendor ID: AuthenticAMD
Model name: AMD Ryzen 5 5600H with Radeon Graphics
CPU family: 25
Model: 80
Thread(s) per core: 2
Core(s) per socket: 6
Socket(s): 1
Stepping: 0
Frequency boost: enabled
CPU(s) scaling MHz: 85%
CPU max MHz: 4279.6870
CPU min MHz: 1200.0000
BogoMIPS: 6587.37
Flags: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxe
xt fxsr_opt pdpe1gb rdtscp lm constant_tsc rep_good nopl nonstop_tsc cpuid extd_apicid aperfmperf rapl pni pclmulqdq
monitor ssse3 fma cx16 sse4_1 sse4_2 movbe popcnt aes xsave avx f16c rdrand lahf_lm cmp_legacy svm extapic cr8_lega
cy abm sse4a misalignsse 3dnowprefetch osvw ibs skinit wdt tce topoext perfctr_core perfctr_nb bpext perfctr_llc mwa
itx cpb cat_l3 cdp_l3 hw_pstate ssbd mba ibrs ibpb stibp vmmcall fsgsbase bmi1 avx2 smep bmi2 erms invpcid cqm rdt_a
rdseed adx smap clflushopt clwb sha_ni xsaveopt xsavec xgetbv1 xsaves cqm_llc cqm_occup_llc cqm_mbm_total cqm_mbm_l
ocal clzero irperf xsaveerptr rdpru wbnoinvd cppc arat npt lbrv svm_lock nrip_save tsc_scale vmcb_clean flushbyasid
decodeassists pausefilter pfthreshold avic v_vmsave_vmload vgif v_spec_ctrl umip pku ospke vaes vpclmulqdq rdpid ove
rflow_recov succor smca fsrm
Virtualization features:
Virtualization: AMD-V
Caches (sum of all):
L1d: 192 KiB (6 instances)
L1i: 192 KiB (6 instances)
L2: 3 MiB (6 instances)
L3: 16 MiB (1 instance)
NUMA:
NUMA node(s): 1
NUMA node0 CPU(s): 0-11
Vulnerabilities:
Gather data sampling: Not affected
Itlb multihit: Not affected
L1tf: Not affected
Mds: Not affected
Meltdown: Not affected
Mmio stale data: Not affected
Reg file data sampling: Not affected
Retbleed: Not affected
Spec rstack overflow: Mitigation; safe RET, no microcode
Spec store bypass: Mitigation; Speculative Store Bypass disabled via prctl
Spectre v1: Mitigation; usercopy/swapgs barriers and __user pointer sanitization
Spectre v2: Mitigation; Retpolines; IBPB conditional; IBRS_FW; STIBP always-on; RSB filling; PBRSB-eIBRS Not affected; BHI Not a
ffected
Srbds: Not affected
Tsx async abort: Not affected

Expected Behavior

Successful compilation and installation of the Sea-Orm CLI

Actual Behavior

Error in Sqlx-core library preventing the install of sea-orm-cli

Reproduces How Often

Yes, this happens everytime I try to install

Workarounds

No known workarounds as of this time

Reproducible Example

This is not possible in sea-orm-cli and I am going to open a bug ticket with sqlx-core

Versions

Not possible because bug is preventing install

@Phosphorus-M
Copy link

lol exactly the same problem just minutes before

@tbar4 tbar4 changed the title Cargo Install error for sqlx-core Cargo Install sea-orm-cli error caused by sqlx-core Oct 4, 2024
@tbar4
Copy link
Author

tbar4 commented Oct 4, 2024

Update about breaking change in launchbadge/sqlx#3544

@tbar4
Copy link
Author

tbar4 commented Oct 4, 2024

For now, running cargo install --locked sea-orm-cli will work

@tbar4
Copy link
Author

tbar4 commented Oct 4, 2024

Closing and this bug will be tracked in launchbadge/sqlx#3544

@tbar4 tbar4 closed this as completed Oct 4, 2024
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