Skip to content

Commit

Permalink
fix(webdav): early fail when used with async incompatible repo
Browse files Browse the repository at this point in the history
  • Loading branch information
nardoor committed Nov 17, 2024
1 parent db9b26e commit d9ece9b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/commands/webdav.rs
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,11 @@ impl WebDavCmd {
fn inner_run(&self, repo: CliIndexedRepo) -> Result<()> {
let config = RUSTIC_APP.config();

// webdav only works with async compatible repo
if repo.is_async_incompatible() {

Check failure on line 85 in src/commands/webdav.rs

View workflow job for this annotation

GitHub Actions / Cross checking x86_64-pc-windows-msvc

no method named `is_async_incompatible` found for struct `Repository` in the current scope

Check failure on line 85 in src/commands/webdav.rs

View workflow job for this annotation

GitHub Actions / Cross checking x86_64-pc-windows-gnu

no method named `is_async_incompatible` found for struct `Repository` in the current scope

Check failure on line 85 in src/commands/webdav.rs

View workflow job for this annotation

GitHub Actions / Cross checking x86_64-apple-darwin

no method named `is_async_incompatible` found for struct `Repository` in the current scope

Check failure on line 85 in src/commands/webdav.rs

View workflow job for this annotation

GitHub Actions / Cross checking aarch64-apple-darwin

no method named `is_async_incompatible` found for struct `Repository` in the current scope

Check failure on line 85 in src/commands/webdav.rs

View workflow job for this annotation

GitHub Actions / Cross checking x86_64-unknown-linux-gnu

no method named `is_async_incompatible` found for struct `Repository` in the current scope

Check failure on line 85 in src/commands/webdav.rs

View workflow job for this annotation

GitHub Actions / Cross checking x86_64-unknown-linux-musl

no method named `is_async_incompatible` found for struct `Repository` in the current scope

Check failure on line 85 in src/commands/webdav.rs

View workflow job for this annotation

GitHub Actions / Cross checking aarch64-unknown-linux-gnu

no method named `is_async_incompatible` found for struct `Repository` in the current scope

Check failure on line 85 in src/commands/webdav.rs

View workflow job for this annotation

GitHub Actions / Cross checking aarch64-unknown-linux-musl

no method named `is_async_incompatible` found for struct `Repository` in the current scope

Check failure on line 85 in src/commands/webdav.rs

View workflow job for this annotation

GitHub Actions / Cross checking i686-unknown-linux-gnu

no method named `is_async_incompatible` found for struct `Repository` in the current scope

Check failure on line 85 in src/commands/webdav.rs

View workflow job for this annotation

GitHub Actions / Cross checking x86_64-unknown-netbsd

no method named `is_async_incompatible` found for struct `Repository` in the current scope

Check failure on line 85 in src/commands/webdav.rs

View workflow job for this annotation

GitHub Actions / Cross checking armv7-unknown-linux-gnueabihf

no method named `is_async_incompatible` found for struct `Repository` in the current scope
return Err(anyhow!("Webdav is currently incompatible with the backend you are using. See https://github.com/rustic-rs/rustic/issues/1181 for more details."));
}

let path_template = config
.webdav
.path_template
Expand Down

0 comments on commit d9ece9b

Please sign in to comment.