Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@iamllama
Copy link
Contributor

Fixes #3854

Was able to reproduce. fsrs-rs' indirect dep priority-queue bumped its edition from 2021 to 2024 in a patch version recently, and although anki's lockfile has it pinned to 2.1.1, cargo ignores the lockfile when installing if the --locked flag isn't passed to it

When building the sync server image, 2.1.1 in fsrs-rs' Cargo.toml is equivalent to ^2.1.1, so cargo pulls 2.2.2, which it can't handle yet (on 1.83)

The fix proposed is to pass the --locked flag to cargo in the dockerfile

@SimonBaars
Copy link
Contributor

Tested this solution, it works! Thanks for looking into this.

Btw, be sure to also update the Dockerfile.distroless (it's in the same folder).

@dae
Copy link
Member

dae commented Mar 14, 2025

Thanks!

@dae dae merged commit d809ee9 into ankitects:main Mar 14, 2025
1 check passed
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.

[Bug] Docker files for syncserver broke

3 participants