3
0
Fork 0
mirror of https://github.com/Swatinem/rust-cache synced 2026-02-07 11:32:15 +00:00

feat: Rm workspace crates version before caching

Fixed #146

 - Set all `package.version` in `Cargo.toml` to `0.0.0`
 - Set `{build-, dev-, }dependencies` of workspace crates to `0.0.0`
 - Remove workspace crates from `Cargo.lock` before caching
 - Sort all toml objects before hashing them as json

Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
This commit is contained in:
Jiahao XU 2023-06-15 01:04:28 +10:00
parent 988c164c3d
commit b3f4ec1366
No known key found for this signature in database
GPG key ID: D7D0DA2A5FE7AF8B
5 changed files with 8419 additions and 8 deletions

View file

@ -26,7 +26,8 @@
"@actions/core": "^1.10.0",
"@actions/exec": "^1.1.1",
"@actions/glob": "^0.4.0",
"@actions/io": "^1.1.3"
"@actions/io": "^1.1.3",
"toml": "^3.0.0"
},
"devDependencies": {
"@vercel/ncc": "^0.36.1",