3
0
Fork 0
mirror of https://github.com/Swatinem/rust-cache synced 2026-01-05 19:32:45 +00:00

Improve errors and cleanup

- Silence errors and do not create error annotations, fixes #144
- Implement cleanup for new sparse registry
- Do not clean `-sys` dependencies from `registry/src`, hopefully fixes  #150
This commit is contained in:
Arpad Borsos 2023-08-02 12:15:14 +02:00
parent e97a782690
commit f6987ea139
No known key found for this signature in database
GPG key ID: FC7BCA77824B3298
7 changed files with 213 additions and 56 deletions

View file

@ -2,7 +2,7 @@ import * as core from "@actions/core";
import { cleanTargetDir } from "./cleanup";
import { CacheConfig } from "./config";
import { getCacheHandler } from "./utils";
import { getCacheHandler, reportError } from "./utils";
process.on("uncaughtException", (e) => {
core.error(e.message);
@ -62,7 +62,7 @@ async function run() {
} catch (e) {
setCacheHitOutput(false);
core.error(`${(e as any).stack}`);
reportError(e);
}
}