mirror of
https://github.com/Swatinem/rust-cache
synced 2026-09-14 20:13:25 +00:00
fix credentials cleanup path
This commit is contained in:
+1
-1
@@ -95,7 +95,7 @@ export async function cleanBin(oldBins: Array<string>) {
|
|||||||
export async function cleanRegistry(packages: Packages, crates = true) {
|
export async function cleanRegistry(packages: Packages, crates = true) {
|
||||||
// remove `.cargo/credentials.toml`
|
// remove `.cargo/credentials.toml`
|
||||||
try {
|
try {
|
||||||
const credentials = path.join(CARGO_HOME, ".cargo", "credentials.toml");
|
const credentials = path.join(CARGO_HOME, "credentials.toml");
|
||||||
core.debug(`deleting "${credentials}"`);
|
core.debug(`deleting "${credentials}"`);
|
||||||
await fs.promises.unlink(credentials);
|
await fs.promises.unlink(credentials);
|
||||||
} catch {}
|
} catch {}
|
||||||
|
|||||||
Reference in New Issue
Block a user