Fix issue with colliding doc files

Signed-off-by: Alexis Sellier <alexis@radicle.xyz>
This commit is contained in:
Alexis Sellier 2022-12-09 14:37:36 +01:00
parent 3ba7a02207
commit b7c1f091fa
No known key found for this signature in database
7 changed files with 19 additions and 47 deletions

52
Cargo.lock generated
View File

@ -1020,33 +1020,13 @@ dependencies = [
"thiserror", "thiserror",
] ]
[[package]]
name = "git-ref-format"
version = "0.1.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d819e0a29c3201eb3373f9371be2bf821437979791ff07fe23a40ed8adadcfc3"
dependencies = [
"git-ref-format-core 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)",
"git-ref-format-macro 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)",
]
[[package]] [[package]]
name = "git-ref-format" name = "git-ref-format"
version = "0.1.0" version = "0.1.0"
source = "git+https://github.com/radicle-dev/radicle-git?rev=d3115a22158c8395705babefdc89049f7510d32d#d3115a22158c8395705babefdc89049f7510d32d" source = "git+https://github.com/radicle-dev/radicle-git?rev=d3115a22158c8395705babefdc89049f7510d32d#d3115a22158c8395705babefdc89049f7510d32d"
dependencies = [ dependencies = [
"git-ref-format-core 0.1.0 (git+https://github.com/radicle-dev/radicle-git?rev=d3115a22158c8395705babefdc89049f7510d32d)", "git-ref-format-core",
"git-ref-format-macro 0.1.0 (git+https://github.com/radicle-dev/radicle-git?rev=d3115a22158c8395705babefdc89049f7510d32d)", "git-ref-format-macro",
]
[[package]]
name = "git-ref-format-core"
version = "0.1.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "6937508983bd6ed558a64caa8b3ca6bd46fdff8be1389a961f9ddf7e0baddee5"
dependencies = [
"serde",
"thiserror",
] ]
[[package]] [[package]]
@ -1058,24 +1038,12 @@ dependencies = [
"thiserror", "thiserror",
] ]
[[package]]
name = "git-ref-format-macro"
version = "0.1.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "66434445c9d45a85a9186a76770b1f80a44fdf8ed34fb6d4e3d12c5b9fc942ef"
dependencies = [
"git-ref-format-core 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)",
"proc-macro-error",
"quote",
"syn",
]
[[package]] [[package]]
name = "git-ref-format-macro" name = "git-ref-format-macro"
version = "0.1.0" version = "0.1.0"
source = "git+https://github.com/radicle-dev/radicle-git?rev=d3115a22158c8395705babefdc89049f7510d32d#d3115a22158c8395705babefdc89049f7510d32d" source = "git+https://github.com/radicle-dev/radicle-git?rev=d3115a22158c8395705babefdc89049f7510d32d#d3115a22158c8395705babefdc89049f7510d32d"
dependencies = [ dependencies = [
"git-ref-format-core 0.1.0 (git+https://github.com/radicle-dev/radicle-git?rev=d3115a22158c8395705babefdc89049f7510d32d)", "git-ref-format-core",
"proc-macro-error", "proc-macro-error",
"quote", "quote",
"syn", "syn",
@ -2099,7 +2067,7 @@ dependencies = [
"cyphernet", "cyphernet",
"ed25519-compact", "ed25519-compact",
"fastrand", "fastrand",
"git-ref-format 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)", "git-ref-format",
"git2", "git2",
"log", "log",
"multibase", "multibase",
@ -2158,7 +2126,7 @@ dependencies = [
"ed25519-compact", "ed25519-compact",
"fastrand", "fastrand",
"git-commit", "git-commit",
"git-ref-format 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)", "git-ref-format",
"git-trailers", "git-trailers",
"git2", "git2",
"log", "log",
@ -2196,7 +2164,7 @@ dependencies = [
"cyphernet", "cyphernet",
"ed25519-compact", "ed25519-compact",
"fastrand", "fastrand",
"git-ref-format 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)", "git-ref-format",
"multibase", "multibase",
"qcheck", "qcheck",
"qcheck-macros", "qcheck-macros",
@ -2215,7 +2183,7 @@ name = "radicle-git-ext"
version = "0.2.0" version = "0.2.0"
source = "git+https://github.com/radicle-dev/radicle-git?rev=d3115a22158c8395705babefdc89049f7510d32d#d3115a22158c8395705babefdc89049f7510d32d" source = "git+https://github.com/radicle-dev/radicle-git?rev=d3115a22158c8395705babefdc89049f7510d32d#d3115a22158c8395705babefdc89049f7510d32d"
dependencies = [ dependencies = [
"git-ref-format 0.1.0 (git+https://github.com/radicle-dev/radicle-git?rev=d3115a22158c8395705babefdc89049f7510d32d)", "git-ref-format",
"git2", "git2",
"percent-encoding", "percent-encoding",
"radicle-std-ext", "radicle-std-ext",
@ -2261,7 +2229,7 @@ dependencies = [
"colored", "colored",
"crossbeam-channel", "crossbeam-channel",
"fastrand", "fastrand",
"git-ref-format 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)", "git-ref-format",
"lexopt", "lexopt",
"log", "log",
"nakamoto-net", "nakamoto-net",
@ -2313,7 +2281,7 @@ dependencies = [
"base64", "base64",
"either", "either",
"flate2", "flate2",
"git-ref-format 0.1.0 (git+https://github.com/radicle-dev/radicle-git?rev=d3115a22158c8395705babefdc89049f7510d32d)", "git-ref-format",
"git2", "git2",
"nom 6.1.2", "nom 6.1.2",
"nonempty 0.5.0", "nonempty 0.5.0",
@ -2329,7 +2297,7 @@ name = "radicle-tools"
version = "0.2.0" version = "0.2.0"
dependencies = [ dependencies = [
"anyhow", "anyhow",
"git-ref-format 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)", "git-ref-format",
"radicle", "radicle",
] ]

View File

@ -39,3 +39,7 @@ version = "0.1.0"
[patch.crates-io.radicle-git-ext] [patch.crates-io.radicle-git-ext]
git = "https://github.com/radicle-dev/radicle-git" git = "https://github.com/radicle-dev/radicle-git"
rev = "d3115a22158c8395705babefdc89049f7510d32d" rev = "d3115a22158c8395705babefdc89049f7510d32d"
[patch.crates-io.git-ref-format]
git = "https://github.com/radicle-dev/radicle-git"
rev = "d3115a22158c8395705babefdc89049f7510d32d"

View File

@ -91,7 +91,7 @@ impl From<&ObjectId> for Component<'_> {
fn from(id: &ObjectId) -> Self { fn from(id: &ObjectId) -> Self {
let refstr = RefString::try_from(id.0.to_string()) let refstr = RefString::try_from(id.0.to_string())
.expect("collaborative object id's are valid ref strings"); .expect("collaborative object id's are valid ref strings");
Component::from_refstring(refstr) Component::from_refstr(refstr)
.expect("collaborative object id's are valid refname components") .expect("collaborative object id's are valid refname components")
} }
} }

View File

@ -64,7 +64,7 @@ impl From<&TypeName> for Component<'_> {
fn from(name: &TypeName) -> Self { fn from(name: &TypeName) -> Self {
let refstr = RefString::try_from(name.0.to_string()) let refstr = RefString::try_from(name.0.to_string())
.expect("collaborative object type names are valid ref strings"); .expect("collaborative object type names are valid ref strings");
Component::from_refstring(refstr) Component::from_refstr(refstr)
.expect("collaborative object type names are valid refname components") .expect("collaborative object type names are valid refname components")
} }
} }

View File

@ -354,7 +354,7 @@ impl<'a> From<&PublicKey> for git_ref_format::Component<'a> {
use git_ref_format::{Component, RefString}; use git_ref_format::{Component, RefString};
let refstr = let refstr =
RefString::try_from(id.to_string()).expect("encoded public keys are valid ref strings"); RefString::try_from(id.to_string()).expect("encoded public keys are valid ref strings");
Component::from_refstring(refstr).expect("encoded public keys are valid refname components") Component::from_refstr(refstr).expect("encoded public keys are valid refname components")
} }
} }

View File

@ -120,6 +120,6 @@ impl From<&Id> for Component<'_> {
fn from(id: &Id) -> Self { fn from(id: &Id) -> Self {
let refstr = let refstr =
RefString::try_from(id.0.to_string()).expect("project id's are valid ref strings"); RefString::try_from(id.0.to_string()).expect("project id's are valid ref strings");
Component::from_refstring(refstr).expect("project id's are valid refname components") Component::from_refstr(refstr).expect("project id's are valid refname components")
} }
} }

View File

@ -346,7 +346,7 @@ mod tests {
use radicle_crypto::test::signer::MockSigner; use radicle_crypto::test::signer::MockSigner;
use crate::git::{name::component, qualified, Qualified}; use crate::git::{name::component, qualified};
use crate::identity::Did; use crate::identity::Did;
use crate::storage::git::transport; use crate::storage::git::transport;
use crate::storage::git::Storage; use crate::storage::git::Storage;