Skip to content

Commit

Permalink
Merge pull request #354 from fujiwara/fix/v1-new-func
Browse files Browse the repository at this point in the history
Skip checking to update PackageType when the new function is created.
  • Loading branch information
fujiwara authored Feb 7, 2024
2 parents d046e3f + b439356 commit d304a7b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lambroll.go
Original file line number Diff line number Diff line change
Expand Up @@ -390,6 +390,11 @@ func exportEnvFile(file string) error {
var errCannotUpdateImageAndZip = fmt.Errorf("cannot update function code between Image and Zip")

func validateUpdateFunction(currentConf *types.FunctionConfiguration, currentCode *types.FunctionCodeLocation, newFn *lambda.CreateFunctionInput) error {
if currentConf == nil {
// create new function
return nil
}

newCode := newFn.Code

// new=Image
Expand Down

0 comments on commit d304a7b

Please sign in to comment.