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

Default branch as main not supported on some versions of Cargo. #506

Closed
olafur-palsson opened this issue Aug 1, 2022 · 1 comment
Closed

Comments

@olafur-palsson
Copy link

olafur-palsson commented Aug 1, 2022

Some versions of Cargo don't support updating from a repo without the branch master.
see rust-lang/cargo#3517 for the issue
and that's how #421 introduced a bug.

This is the error I'm getting.

    Updating git repository `https://github.com/awslabs/aws-lambda-rust-runtime/`
warning: spurious network error (2 tries remaining): failed open - '/home/oli/.cargo/git/db/aws-lambda-rust-runtime-7c865cce90132439/FETCH_HEAD' is locked: Permission denied; class=Os (2); code=Locked (-14)
warning: spurious network error (1 tries remaining): failed open - '/home/oli/.cargo/git/db/aws-lambda-rust-runtime-7c865cce90132439/FETCH_HEAD' is locked: Permission denied; class=Os (2); code=Locked (-14)
error: failed to get `lambda` as a dependency of package `hello v0.1.0 (/home/oli/projects/rust-project/rust-app-2)`

Caused by:
  failed to load source for dependency `lambda`

Caused by:
  Unable to update https://github.com/awslabs/aws-lambda-rust-runtime/?branch=master

Caused by:
  failed to fetch into: /home/oli/.cargo/git/db/aws-lambda-rust-runtime-7c865cce90132439

Caused by:
  failed open - '/home/oli/.cargo/git/db/aws-lambda-rust-runtime-7c865cce90132439/FETCH_HEAD' is locked: Permission denied; class=Os (2); code=Locked (-14)
@calavera
Copy link
Contributor

calavera commented Aug 2, 2022

As explained in the readme, we don't support old versions of Rust/Cargo https://github.com/awslabs/aws-lambda-rust-runtime#supported-rust-versions-msrv

@calavera calavera closed this as completed Aug 2, 2022
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

2 participants