Skip to content

Error: /usr/local/bin/build.sh: line 35: //.cargo/env: No such file or directory #318

@RaviH

Description

@RaviH

Hello,

I downloaded your repo and ran from tests/test-func directory and got the error above:

docker run --rm \     
    -u $(id -u):$(id -g) \
    -v ${PWD}:/code \
    -v ${HOME}/.cargo/registry:/cargo/registry \
    -v ${HOME}/.cargo/git:/cargo/git \
    softprops/lambda-rust
/usr/local/bin/build.sh: line 35: //.cargo/env: No such file or directory

There's a workaround for it:

https://www.gitmemory.com/issue/softprops/lambda-rust/84/784833248:

I also just hit this issue but was able to resolve it by building the container from master.

Try cloning the repo and just running make build in the root of the repo. Annoyingly this means that the fix will only apply to your local docker install so won't help if you are using CICD. For that case you will need to push to a container registry and use your repository until a fixed build is pushed to the softprops repo.

Please correct me where I am wrong. But it's a bug if we have to build the project ourselves, right?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions