Skip to content
This repository was archived by the owner on Dec 9, 2024. It is now read-only.
This repository was archived by the owner on Dec 9, 2024. It is now read-only.

Deploying actions to package that doesn't exist fails. #95

@jthomas

Description

@jthomas

Actions can be deployed to an existing package (#87) but this requires the package to exist. If the package does not, the plugin doesn't create the package.

We should add support for auto-creating packages on deployment. Packages should also be removed if empty once resources are removed.

$ serverless deploy
Serverless: Packaging service...
Serverless: Excluding development dependencies...
Serverless: Compiling Functions...
Serverless: Compiling API Gateway definitions...
Serverless: Compiling Rules...
Serverless: Compiling Triggers & Feeds...
Serverless: Deploying Functions...

  Serverless Error ---------------------------------------

  Failed to deploy function (blahlahblah/hello) due to error: PUT https://openwhisk.ng.bluemix.net/api/v1/namespaces/_/actions/blahlahblah/hello?overwrite=true Returned
 HTTP 404 (Not Found) --> "The requested resource does not exist."

  Get Support --------------------------------------------
     Docs:          docs.serverless.com
     Bugs:          github.com/serverless/serverless/issues
     Forums:        forum.serverless.com
     Chat:          gitter.im/serverless/serverless

  Your Environment Information -----------------------------
     OS:                     darwin
     Node Version:           9.3.0
     Serverless Version:     1.26.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions