Cargo vendor broken with current Cargo.toml
Closed this issue · 1 comments
darix commented
Fix:
diff --git a/Cargo.toml b/Cargo.toml
index 2da4afa..c78fcff 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -107,7 +107,7 @@ typst-svg = { git = "https://github.com/Myriad-Dreamin/typst.git", tag = "tinymi
typst-render = { git = "https://github.com/Myriad-Dreamin/typst.git", tag = "tinymist-v0.11.23" }
typst-pdf = { git = "https://github.com/Myriad-Dreamin/typst.git", tag = "tinymist-v0.11.23" }
typst-syntax = { git = "https://github.com/Myriad-Dreamin/typst.git", tag = "tinymist-v0.11.23" }
-typst-assets = { git = "https://github.com/typst/typst-assets", rev = "4ee794cf8fb98eb67194e757c9820ab8562d853b" }
+typst-assets = { git = "https://github.com/typst/typst-assets", rev = "4ee794c" }
typstfmt_lib = { git = "https://github.com/astrale-sharp/typstfmt", tag = "0.2.7" }
typstyle = { git = "https://github.com/Enter-tainer/typstyle", branch = "tinymist-v0.11.23", default-features = false }
typlite = { path = "./crates/typlite" }
error i saw before:
2024-09-28T10:00:57.029456Z ERROR obs_service_cargo::utils: stderrput=" Skipping git submodule `https://github.com/Myriad-Dreamin/typst.git` due to update strategy in .gitmodules\n Skipping git submodule `https://github.com/Myriad-Dreamin/cetz-editor.git` due to update strategy in .gitmodules\n Skipping git submodule `https://github.com/Myriad-Dreamin/typst-book.git` due to update strategy in .gitmodules\n Skipping git submodule `https://github.com/Enter-tainer/typst-preview.git` due to update strategy in .gitmodules\n Skipping git submodule `https://github.com/Myriad-Dreamin/typst.git` due to update strategy in .gitmodules\n Skipping git submodule `https://github.com/Myriad-Dreamin/cetz-editor.git` due to update strategy in .gitmodules\n Skipping git submodule `https://github.com/Myriad-Dreamin/typst-book.git` due to update strategy in .gitmodules\n Skipping git submodule `https://github.com/Enter-tainer/typst-preview.git` due to update strategy in .gitmodules\nerror: failed to sync\n\nCaused by:\n found duplicate version of package `typst-assets v0.11.0` vendored from two sources:\n\n \tsource 1: https://github.com/typst/typst-assets?rev=4ee794c#4ee794cf\n \tsource 2: https://github.com/typst/typst-assets?rev=4ee794cf8fb98eb67194e757c9820ab8562d853b#4ee794cf\n"
2024-09-28T10:00:57.029468Z ERROR obs_service_cargo::vendor: err=Failed to run command `cargo vendor`. Has exit code `101`. Standard Output Error:
2024-09-28T10:00:57.029475Z ERROR obs_service_cargo::cli: err=kind: cargo vendor process failed
reason: Unable to execute cargo
2024-09-28T10:00:57.038526Z ERROR cargo_vendor: kind: cargo vendor process failed```
Myriad-Dreamin commented
this seems to be a well-known cargo bug (feature) that it doesn't deduplicate revision set in different lengths. Could you send a patch?