Skip to content

Commit

Permalink
Fix golem-cli new target path
Browse files Browse the repository at this point in the history
  • Loading branch information
noise64 committed Jan 30, 2025
1 parent 2aa5b23 commit f2232ef
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion golem-cli/src/examples.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,14 @@ pub fn new(
match example {
Some(example) => {
let cwd = env::current_dir().expect("Failed to get current working directory");
let target_path = cwd.join(component_name.as_str());
match instantiate_example(
example,
&ExampleParameters {
component_name,
package_name: package_name
.unwrap_or(PackageName::from_string("golem:component").unwrap()),
target_path: cwd,
target_path,
},
TargetExistsResolveMode::Fail,
) {
Expand Down

0 comments on commit f2232ef

Please sign in to comment.