softprops / serverless-rust

⚡ 🦀 a serverless framework plugin for rustlang applications
https://www.npmjs.com/package/serverless-rust
MIT License
545 stars 82 forks source link

packaged artifact broken on latest release on serverless@1.39.0 #30

Closed softprops closed 5 years ago

softprops commented 5 years ago

🐛 Bug description

Describe your issue in detail.

running npx serverless deploy of functions using the latest serverless release (1.39.0) results in the following error

Serverless: Packaging service...

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

  No test-func.zip file found in the package path you provided.

  Get Support --------------------------------------------
     Docs:          docs.serverless.com
     Bugs:          github.com/serverless/serverless/issues
     Issues:        forum.serverless.com

  Your Environment Information -----------------------------
     OS:                     darwin
     Node Version:           11.6.0
     Serverless Version:     1.39.0

🤔 Expected Behavior

function was deployed as expected with previous releases

👟 Steps to reproduce

while testing the latest version for the new invoke local support, a regression test of deployment revealed this error. I'm suspect that something changed in the way serverless resolves artifact paths. an open issue now exists upstream with many users reporting the same issue https://github.com/serverless/serverless/issues/5931

🌍 Your environment

serverless version:

1.39.0

rust-plugin version:

latest

softprops commented 5 years ago

looking at the .serverless/serverless-state.json file

@0.1.39.0

      "hello": {
        "handler": "test-func",
        "events": [],
        "name": "aws-rust-dev-hello",
        "package": {
          "artifact": "/Users/dougtangren/code/rust/serverless-rust/tests/test-func/.serverless/target/lambda/release/test-func.zip"
        },
        "memory": 128,
        "timeout": 6,
        "runtime": "provided",
        "vpc": {}
      }

then @1.38.0

"functions": {
      "hello": {
        "handler": "test-func",
        "events": [],
        "name": "aws-rust-dev-hello",
        "package": {
          "artifact": "target/lambda/release/test-func.zip"
        },
        "memory": 128,
        "timeout": 6,
        "runtime": "provided",
        "vpc": {}
      }
    },
softprops commented 5 years ago

a patch was released https://github.com/serverless/serverless/releases/tag/v1.39.1

softprops commented 5 years ago

fixed upstream