3
0
Fork 0
mirror of https://github.com/Swatinem/rust-cache synced 2026-05-14 06:55:28 +00:00

Remove .cargo from credentials.toml cleanup path

This commit is contained in:
David Steele 2026-05-12 09:03:37 +01:00
parent 65012b4902
commit 6cf33315ce
No known key found for this signature in database
GPG key ID: E05974C8AE501FC6
3 changed files with 3 additions and 3 deletions

View file

@ -250222,7 +250222,7 @@ async function cleanBin(oldBins) {
async function cleanRegistry(packages, crates = true) {
// remove `.cargo/credentials.toml`
try {
const credentials = path.join(CARGO_HOME, ".cargo", "credentials.toml");
const credentials = path.join(CARGO_HOME, "credentials.toml");
core.debug(`deleting "${credentials}"`);
await fs.promises.unlink(credentials);
}

2
dist/save/index.js vendored
View file

@ -250222,7 +250222,7 @@ async function cleanBin(oldBins) {
async function cleanRegistry(packages, crates = true) {
// remove `.cargo/credentials.toml`
try {
const credentials = external_path_default().join(CARGO_HOME, ".cargo", "credentials.toml");
const credentials = external_path_default().join(CARGO_HOME, "credentials.toml");
core_debug(`deleting "${credentials}"`);
await external_fs_default().promises.unlink(credentials);
}

View file

@ -110,7 +110,7 @@ export async function cleanBin(oldBins: Array<string>) {
export async function cleanRegistry(packages: Packages, crates = true) {
// remove `.cargo/credentials.toml`
try {
const credentials = path.join(CARGO_HOME, ".cargo", "credentials.toml");
const credentials = path.join(CARGO_HOME, "credentials.toml");
core.debug(`deleting "${credentials}"`);
await fs.promises.unlink(credentials);
} catch {}