diff --git a/Cargo.lock b/Cargo.lock index b310b4d051..da46b2e295 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -525,7 +525,7 @@ dependencies = [ [[package]] name = "kamu" -version = "0.30.0" +version = "0.30.1" dependencies = [ "cfg-if 0.1.10 (registry+https://github.com/rust-lang/crates.io-index)", "chrono 0.4.15 (registry+https://github.com/rust-lang/crates.io-index)", @@ -539,9 +539,9 @@ dependencies = [ "indoc 1.0.2 (registry+https://github.com/rust-lang/crates.io-index)", "intervals-general 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)", "itertools 0.9.0 (registry+https://github.com/rust-lang/crates.io-index)", - "kamu-test 0.30.0", + "kamu-test 0.30.1", "parquet 2.0.0-SNAPSHOT (git+https://github.com/apache/arrow)", - "rand 0.7.3 (registry+https://github.com/rust-lang/crates.io-index)", + "rand 0.3.23 (registry+https://github.com/rust-lang/crates.io-index)", "regex 1.3.9 (registry+https://github.com/rust-lang/crates.io-index)", "ringbuf 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)", "rust-crypto 0.2.36 (registry+https://github.com/rust-lang/crates.io-index)", @@ -559,7 +559,7 @@ dependencies = [ [[package]] name = "kamu-cli" -version = "0.30.0" +version = "0.30.1" dependencies = [ "chrono 0.4.15 (registry+https://github.com/rust-lang/crates.io-index)", "chrono-humanize 0.0.11 (registry+https://github.com/rust-lang/crates.io-index)", @@ -570,11 +570,11 @@ dependencies = [ "indicatif 0.15.0 (registry+https://github.com/rust-lang/crates.io-index)", "indoc 1.0.2 (registry+https://github.com/rust-lang/crates.io-index)", "itertools 0.9.0 (registry+https://github.com/rust-lang/crates.io-index)", - "kamu 0.30.0", + "kamu 0.30.1", "num-format 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)", "parquet 2.0.0-SNAPSHOT (git+https://github.com/apache/arrow)", "prettytable-rs 0.8.0 (registry+https://github.com/rust-lang/crates.io-index)", - "rand 0.7.3 (registry+https://github.com/rust-lang/crates.io-index)", + "rand 0.3.23 (registry+https://github.com/rust-lang/crates.io-index)", "read_input 0.8.4 (registry+https://github.com/rust-lang/crates.io-index)", "shlex 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)", "slog 2.5.2 (registry+https://github.com/rust-lang/crates.io-index)", @@ -587,10 +587,10 @@ dependencies = [ [[package]] name = "kamu-test" -version = "0.30.0" +version = "0.30.1" dependencies = [ "chrono 0.4.15 (registry+https://github.com/rust-lang/crates.io-index)", - "kamu 0.30.0", + "kamu 0.30.1", "serde_yaml 0.8.13 (registry+https://github.com/rust-lang/crates.io-index)", "url 2.1.1 (registry+https://github.com/rust-lang/crates.io-index)", ] diff --git a/kamu-cli/Cargo.toml b/kamu-cli/Cargo.toml index 03674f93fd..979b6516dc 100644 --- a/kamu-cli/Cargo.toml +++ b/kamu-cli/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "kamu-cli" -version = "0.30.0" +version = "0.30.1" description = "Decentralized data management tool" authors = ["Sergii Mikhtoniuk "] license = "MPL-2.0" diff --git a/kamu-cli/src/commands/init_command.rs b/kamu-cli/src/commands/init_command.rs index 285bab8000..e7eb3cd9b5 100644 --- a/kamu-cli/src/commands/init_command.rs +++ b/kamu-cli/src/commands/init_command.rs @@ -29,11 +29,19 @@ impl Command for InitCommand { fs::create_dir_all(&self.workspace_layout.datasets_dir)?; fs::create_dir_all(&self.workspace_layout.remotes_dir)?; fs::create_dir_all(&self.workspace_layout.run_info_dir)?; + fs::create_dir_all(&self.workspace_layout.local_volume_dir)?; - let gitignore_path = self.workspace_layout.kamu_root_dir.join(".gitignore"); - let mut gitignore = fs::File::create(gitignore_path)?; - writeln!(gitignore, "/config")?; - gitignore.sync_all()?; + { + let gitignore_path = self.workspace_layout.kamu_root_dir.join(".gitignore"); + let mut gitignore = fs::File::create(gitignore_path)?; + writeln!(gitignore, "/config")?; + gitignore.sync_all()?; + } + + { + let gitignore_path = self.workspace_layout.local_volume_dir.join(".gitignore"); + fs::write(gitignore_path, "*\n".as_bytes())?; + } eprintln!( "{}", diff --git a/kamu-core-test/Cargo.toml b/kamu-core-test/Cargo.toml index 1ab7f512ed..877e4a15ff 100644 --- a/kamu-core-test/Cargo.toml +++ b/kamu-core-test/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "kamu-test" -version = "0.30.0" +version = "0.30.1" authors = ["Sergii Mikhtoniuk "] edition = "2018" diff --git a/kamu-core/Cargo.toml b/kamu-core/Cargo.toml index 32a8cc63b6..9ecc9766f5 100644 --- a/kamu-core/Cargo.toml +++ b/kamu-core/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "kamu" -version = "0.30.0" +version = "0.30.1" authors = ["Sergii Mikhtoniuk "] edition = "2018"