diff --git a/v2/pkg/commands/build/build.go b/v2/pkg/commands/build/build.go index 5b8255b3c..534ff134f 100644 --- a/v2/pkg/commands/build/build.go +++ b/v2/pkg/commands/build/build.go @@ -71,6 +71,11 @@ func Build(options *Options) (string, error) { } options.ProjectData = projectData + // Add default path if it doesn't exist + if projectData.Path == "" { + projectData.Path = cwd + } + // Set build directory options.BuildDirectory = filepath.Join(options.ProjectData.Path, "build", "bin")