Skip to content

Commit e3bf57c

Browse files
authored
minimal-versions: replace workspace Cargo.toml instead of deleting (#51)
Generates a stub Cargo.toml at the workspace level which configures a workspace with one member whose path is the current working directory. I think this might resolve the problem I was having with using workspace-level configs in conjunction with `minimal-versions` on RustCrypto/utils#1411 Not sure how to test it
1 parent 9442084 commit e3bf57c

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

.github/workflows/minimal-versions.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,8 @@ jobs:
4646
- uses: dtolnay/rust-toolchain@master
4747
with:
4848
toolchain: ${{ inputs.nightly }}
49-
- run: rm ../Cargo.toml
49+
# Use a stub Cargo.toml at the workspace-level which still allows workspace-level configs to function
50+
- run: printf "[workspace]\nmembers=[\"%q\"]" $(pwd) >> ../Cargo.toml
5051
- run: cargo update -Z minimal-versions
5152
- run: ${{ inputs.nightly-cmd }}
5253
# Perform tests

.yamllint.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
rules:
2+
line-length: disable

0 commit comments

Comments
 (0)