forked from Cutieguwu/raven
Bump subprocess and toml. Also remove the demo project I accidentally
pushed.
This commit is contained in:
@@ -12,12 +12,12 @@ publish.workspace = true
|
||||
[dependencies]
|
||||
derive_more.workspace = true
|
||||
fs.workspace = true
|
||||
io.workspace = true
|
||||
java.workspace = true
|
||||
pathsub.workspace = true
|
||||
semver.workspace = true
|
||||
serde.workspace = true
|
||||
sha256.workspace = true
|
||||
subprocess.workspace = true
|
||||
toml.workspace = true
|
||||
|
||||
[dependencies.anyhow]
|
||||
|
||||
@@ -5,16 +5,13 @@ pub type Result<T> = std::result::Result<T, Error>;
|
||||
#[derive(Debug, From, Display)]
|
||||
pub enum Error {
|
||||
#[from]
|
||||
Io(io::Error),
|
||||
Io(std::io::Error),
|
||||
|
||||
#[from]
|
||||
Java(java::Error),
|
||||
|
||||
MissingFileName,
|
||||
|
||||
#[from]
|
||||
StdIo(std::io::Error),
|
||||
|
||||
#[from]
|
||||
TomlDeserialize(toml::de::Error),
|
||||
|
||||
|
||||
@@ -2,11 +2,12 @@ use std::collections::HashMap;
|
||||
use std::fs::{OpenOptions, read_dir};
|
||||
use std::io::{Read, Write};
|
||||
use std::path::{Path, PathBuf};
|
||||
use std::time::Duration;
|
||||
|
||||
use fs::expand_files;
|
||||
use io::run_process;
|
||||
use java::{JAVA_EXT_CLASS, JAVA_EXT_SOURCE};
|
||||
use serde::{Deserialize, Serialize};
|
||||
use subprocess::Exec;
|
||||
|
||||
use crate::Error;
|
||||
use crate::nest::{F_NEST_LOCK, F_NEST_TOML, Nest, NestLock};
|
||||
@@ -102,7 +103,11 @@ impl WorkspaceHandler {
|
||||
self.write_example_project()?;
|
||||
self.discover_packages()?;
|
||||
|
||||
run_process(&["git", "init", "."])?;
|
||||
Exec::cmd("git")
|
||||
.arg("init")
|
||||
.arg(".")
|
||||
.start()?
|
||||
.wait_timeout(Duration::from_secs(10))?;
|
||||
}
|
||||
|
||||
// Append to .gitignore
|
||||
|
||||
Reference in New Issue
Block a user