mirror of
https://github.com/fabro-sh/fabro.git
synced 2026-10-08 03:10:26 +00:00
Merge pull request #586 from fabro-sh/fix/repo-init-default-environment
Let repo init use the target server default environment
This commit is contained in:
commit
25f1f64aee
2 changed files with 3 additions and 8 deletions
|
|
@ -117,11 +117,12 @@ draft = true
|
|||
);
|
||||
}
|
||||
|
||||
// Create workflow.toml
|
||||
// Leave the environment unspecified so the target server can supply its
|
||||
// default.
|
||||
let toml_path = workflow_dir.join("workflow.toml");
|
||||
std::fs::write(
|
||||
&toml_path,
|
||||
"_version = 1\n\n[workflow]\ngraph = \"workflow.fabro\"\n\n[run.environment]\nid = \"local\"\n\n[environments.local]\nprovider = \"local\"\n",
|
||||
"_version = 1\n\n[workflow]\ngraph = \"workflow.fabro\"\n",
|
||||
)
|
||||
.with_context(|| format!("failed to write {}", toml_path.display()))?;
|
||||
created.push(".fabro/workflows/hello/workflow.toml".to_string());
|
||||
|
|
|
|||
|
|
@ -96,12 +96,6 @@ fn repo_init_creates_project_toml_and_hello_workflow() {
|
|||
|
||||
[workflow]
|
||||
graph = "workflow.fabro"
|
||||
|
||||
[run.environment]
|
||||
id = "local"
|
||||
|
||||
[environments.local]
|
||||
provider = "local"
|
||||
"###
|
||||
);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue