diff --git a/pkg/runtime/runtime.go b/pkg/runtime/runtime.go index e8aec64d7..31784e07b 100644 --- a/pkg/runtime/runtime.go +++ b/pkg/runtime/runtime.go @@ -39,7 +39,11 @@ type BuildInput struct { } func (input *BuildInput) Out() string { - return filepath.Join(path.ResolveWorkingDir(input.CfgPath), "artifacts", input.FunctionID) + suffix := "" + if input.Dev { + suffix = "-dev" + } + return filepath.Join(path.ResolveWorkingDir(input.CfgPath), "artifacts", input.FunctionID+suffix) } type BuildOutput struct {