Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
softprops opened this issue Mar 16, 2019 · 3 comments
Closed

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

softprops opened this issue Mar 16, 2019 · 3 comments

Comments

@softprops
Copy link
Owner

🐛 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 serverless/serverless#5931

🌍 Your environment

serverless version:

1.39.0

rust-plugin version:

latest

@softprops
Copy link
Owner Author

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
Copy link
Owner Author

@softprops
Copy link
Owner Author

fixed upstream

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant