Skip to content

npx sls package fails in CircleCI Linux container #25

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

Closed
maxcountryman opened this issue Aug 7, 2019 · 1 comment
Closed

npx sls package fails in CircleCI Linux container #25

maxcountryman opened this issue Aug 7, 2019 · 1 comment

Comments

@maxcountryman
Copy link
Contributor

I seem to be running into an issue when I try to execute the package command within a CircleCI job using the Docker image circleci/rust:latest-node:

$ npx sls package
Serverless: Building native Rust myfunction func...
error: could not find `Cargo.toml` in `/code` or any parent directory
Serverless: Dockerized Rust build encountered an error: undefined 1.

  Error --------------------------------------------------


     For debugging logs, run again after setting the "SLS_DEBUG=*" environment variable.

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

  Your Environment Information ---------------------------
     Operating System:          linux
     Node Version:              10.16.1
     Serverless Version:        1.49.0
     Enterprise Plugin Version: 1.3.8
     Platform SDK Version:      2.1.0

Listing the directory in fact reveals the expected Cargo.toml so the error seems a bit misleading:

$ ls
Cargo.lock  Cargo.toml  README.md  myfunction  myotherfunctiuon  node_modules  package-lock.json  package.json  serverless.yml  target

Any help is appreciated.

@maxcountryman
Copy link
Contributor Author

It seems this is already being tracked here: softprops/serverless-rust#40

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