Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master' into support-arm-releases
Browse files Browse the repository at this point in the history
  • Loading branch information
Schniz committed Oct 25, 2020
2 parents 60424d2 + 7e13205 commit aa6f45d
Show file tree
Hide file tree
Showing 4 changed files with 50 additions and 25 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
- uses: hecrj/setup-rust-action@v1
with:
rust-version: stable
- uses: actions/checkout@v1
- uses: actions/checkout@v2
- name: cargo fmt
run: cargo fmt -- --check

Expand All @@ -26,7 +26,7 @@ jobs:
- uses: hecrj/setup-rust-action@v1
with:
rust-version: stable
- uses: actions/checkout@v1
- uses: actions/checkout@v2
- name: Run tests
run: cargo test -- --skip=feature_tests

Expand All @@ -45,7 +45,7 @@ jobs:
- uses: hecrj/setup-rust-action@v1
with:
rust-version: stable
- uses: actions/checkout@v1
- uses: actions/checkout@v2
- name: Run tests
run: cargo test -- feature_tests

Expand All @@ -56,7 +56,7 @@ jobs:
- uses: hecrj/setup-rust-action@v1
with:
rust-version: stable
- uses: actions/checkout@v1
- uses: actions/checkout@v2
- name: Build release binary
run: cargo build --release
env:
Expand All @@ -77,7 +77,7 @@ jobs:
- uses: hecrj/setup-rust-action@v1
with:
rust-version: stable
- uses: actions/checkout@v1
- uses: actions/checkout@v2
- name: Build release binary
run: cargo build --release
env:
Expand Down
56 changes: 39 additions & 17 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ edition = "2018"
build = "build.rs"

[dependencies]
serde = { version = "1.0.116", features = ["derive"] }
serde = { version = "1.0.117", features = ["derive"] }
clap = "2.33.3"
structopt = "0.3.20"
reqwest = { version = "0.10.8", features = ["blocking", "json", "rustls-tls", "brotli"], default-features = false }
Expand All @@ -22,9 +22,10 @@ tempfile = "3.1.0"
indoc = "1.0.3"
snafu = { version = "0.6.9", features = ["backtrace"] }
log = "0.4.11"
env_logger = "0.7.1"
env_logger = "0.8.1"
atty = "0.2.14"
encoding_rs_io = "0.1.7"
dircpy = "0.3.4"

[dev-dependencies]
pretty_assertions = "0.6.1"
Expand Down
4 changes: 3 additions & 1 deletion src/directory_portal.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
use dircpy::copy_dir;
use log::*;
use std::path::Path;
use tempfile::{tempdir, TempDir};
Expand All @@ -21,7 +22,8 @@ impl<P: AsRef<Path>> DirectoryPortal<P> {
self.temp_dir.path(),
self.target.as_ref()
);
std::fs::rename(&self.temp_dir, &self.target)?;
copy_dir(&self.temp_dir, &self.target)?;
std::fs::remove_dir_all(&self.temp_dir)?;
Ok(self.target)
}
}
Expand Down

0 comments on commit aa6f45d

Please sign in to comment.