Skip to content
This repository has been archived by the owner on Oct 21, 2024. It is now read-only.

Commit

Permalink
dev: handle race condition causing code.zip not found error
Browse files Browse the repository at this point in the history
  • Loading branch information
thdxr committed Sep 12, 2024
1 parent 9b878a0 commit 14faf7e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion pkg/runtime/runtime.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 14faf7e

Please sign in to comment.