mobilecoinofficial / forest

Enables a Forest of MobileCoin enabled SignalBots. Beta software, APIs may change!
MIT License
19 stars 12 forks source link

Build Auxin-cli Error: failed to select a version for the requirement `curve25519-dalek = "^2.0.0"` #219

Open YuPototo opened 2 years ago

YuPototo commented 2 years ago

when I run cargo build --release, follow error happens:

error: failed to select a version for the requirement curve25519-dalek = "^2.0.0" candidate versions found which didn't match: 3.2.1 location searched: Git repository https://github.com/signalapp/curve25519-dalek.git?branch=lizard2 required by package zkgroup v0.9.0 (https://github.com/signalapp/zkgroup?tag=v0.9.0#e6e53bf6) ... which satisfies git dependency zkgroup of package auxin v0.2.0 (/Users/qinyu/job/alf/singal_bot/auxin/auxin)

I have tried both Mac and Linux, same error. What can I do?

cxloe commented 2 years ago

Are you using rust nightly? rustup default nightly

YuPototo commented 2 years ago

Yes, I have.

cargo 1.63.0-nightly (a4c1cd0eb 2022-05-18)

On Mon, May 23, 2022 at 10:20 AM cxloe @.***> wrote:

Are you using rust nightly? rustup default nightly

— Reply to this email directly, view it on GitHub https://github.com/mobilecoinofficial/forest/issues/219#issuecomment-1134096518, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABYCFIC6XN42PXBPXEM4ES3VLLTPTANCNFSM5WTDLQDA . You are receiving this because you authored the thread.Message ID: @.***>

trunkafunk commented 2 years ago

I think you’d need to bump the requirement to “^3.0.0” to match the version that’s found?

-Gray

Sent from my iPad

On May 22, 2022, at 7:47 PM, Yu Qin @.***> wrote:

 Yes, I have.

cargo 1.63.0-nightly (a4c1cd0eb 2022-05-18)

On Mon, May 23, 2022 at 10:20 AM cxloe @.***> wrote:

Are you using rust nightly? rustup default nightly

— Reply to this email directly, view it on GitHub https://github.com/mobilecoinofficial/forest/issues/219#issuecomment-1134096518, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABYCFIC6XN42PXBPXEM4ES3VLLTPTANCNFSM5WTDLQDA . You are receiving this because you authored the thread.Message ID: @.***>

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you are subscribed to this thread.

cxloe commented 2 years ago

Oh! you're probably building from the auxin_cli folder. Use cargo run to start it from the root directory.

i-infra commented 8 months ago

Last line of Cargo.toml should read:

"curve25519-dalek" = { git = 'https://github.com/signalapp/curve25519-dalek', tag = 'signal-curve25519-4.0.0' }