Bug: Error: RustCargoLambdaBuilder:Resolver - Path resolution for runtime: provided of binary: cargo was not successful
- Dominant language
- Python
- Stars
- 6.7k
- Forks
- 1.2k
- Avg merge
- 1d 10h
- Merged PRs (30d)
- 52
Description
### Description:
When trying to build the Rust Hello World sample, the following error is encountered:
```bash
Build Failed
Error: RustCargoLambdaBuilder:Resolver - Path resolution for runtime: provided of binary: cargo was not successful
```
Building with `--use-container` yields the same error.
Cargo is on `$PATH` as well.
### Steps to reproduce:
Setup the rust HelloWorld example from `sam init` and try to build it.
### Observed result:
```bash
Build Failed
Error: RustCargoLambdaBuilder:Resolver - Path resolution for runtime: provide
```
### Expected result:
It should build successfully
### Additional environment details (Ex: Windows, Mac, Amazon Linux etc)
1. OS: Linux (Fedora 38)
2. `sam --version`: 1.83.0.
3. AWS region: ap-south-1
```
# Paste the output of `sam --info` here
{
"version": "1.83.0",
"system": {
"python": "3.7.10",
"os": "Linux-6.2.14-300.fc38.x86_64-x86_64-with-fedora-38-Thirty_Eight"
},
"additional_dependencies": {
"docker_engine": "Not available",
"aws_cdk": "Not available",
"terraform": "Not available"
},
"available_beta_feature_env_vars": [
"SAM_CLI_BETA_FEATURES",
"SAM_CLI_BETA_BUILD_PERFORMANCE",
"SAM_CLI_BETA_TERRAFORM_SUPPORT",
"SAM_CLI_BETA_RUST_CARGO_LAMBDA"
]
}
```
Contributor guide
Assessment
This issue has not been assessed yet.