3
0
Fork 0
mirror of https://github.com/Swatinem/rust-cache synced 2026-05-18 00:29:28 +00:00
This commit is contained in:
dsteeley 2026-05-12 08:26:35 +00:00 committed by GitHub
commit 83012aef81
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
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) { async function cleanRegistry(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);
} }

2
dist/save/index.js vendored
View file

@ -250222,7 +250222,7 @@ async function cleanBin(oldBins) {
async function cleanRegistry(packages, crates = true) { async function cleanRegistry(packages, crates = true) {
// remove `.cargo/credentials.toml` // remove `.cargo/credentials.toml`
try { 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}"`); core_debug(`deleting "${credentials}"`);
await external_fs_default().promises.unlink(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) { 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 {}