Skip to content
This repository has been archived by the owner on Oct 13, 2023. It is now read-only.

Fail on edition 2021 (due to caching) #215

Open
3 tasks done
MarcoIeni opened this issue Oct 26, 2021 · 1 comment
Open
3 tasks done

Fail on edition 2021 (due to caching) #215

MarcoIeni opened this issue Oct 26, 2021 · 1 comment
Labels
bug Something isn't working

Comments

@MarcoIeni
Copy link

Do the checklist before filing an issue:

Description

When updating to rust 2021 edition we get this error due to the fact that the cargo audit action is using the previous version of cargo.

Workflow code

https://github.com/TrueLayer/ginepro/blob/c6df27b7db64e64227dcaca6ec4d2c45d9db8f3e/.github/workflows/audit.yml

Action output

Run actions-rs/audit-check@v1
  with:
    token: ***
/usr/share/rust/.cargo/bin/cargo generate-lockfile
error: failed to load manifest for workspace member `/home/runner/work/ginepro/ginepro/ginepro`

Caused by:
  failed to parse manifest at `/home/runner/work/ginepro/ginepro/ginepro/Cargo.toml`

Caused by:
  feature `edition2021` is required

  The package requires the Cargo feature called `edition2021`, but that feature is not stabilized in this version of Cargo (1.55.0 (32da73ab1 2021-08-23)).
  Consider trying a newer version of Cargo (this may require the nightly release).
  See https://doc.rust-lang.org/nightly/cargo/reference/unstable.html#edition-2021 for more information about the status of this feature.
Error: The process '/usr/share/rust/.cargo/bin/cargo' failed with exit code 101

Expected behavior

Cargo audit action uses the latest version of cargo if available.

@MarcoIeni
Copy link
Author

Installing the toolchain before running the action fixed it:
image

azriel91 added a commit to azriel91/resman that referenced this issue Oct 31, 2021
orhun added a commit to orhun/menyoki that referenced this issue Oct 31, 2021
orhun added a commit to orhun/gpg-tui that referenced this issue Oct 31, 2021
azriel91 added a commit to azriel91/fn_meta that referenced this issue Nov 2, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Development

No branches or pull requests

1 participant