cirruslabs / cirrus-ci-agent

Agent to execute Cirrus CI tasks
Mozilla Public License 2.0
13 stars 6 forks source link

GHA cache: do not generate cache IDs larger than JavaScript can support #356

Closed edigaryev closed 5 months ago

edigaryev commented 5 months ago

Found this while testing the https://github.com/actions/cache with the following patch:

const httpCacheHost = process.env["CIRRUS_HTTP_CACHE_HOST"];

if (httpCacheHost != null) {
    const newActionsCacheURL = `http://${httpCacheHost}/`;

    console.log(`Re-defining ACTIONS_CACHE_URL to ${newActionsCacheURL}`);

    process.env["ACTIONS_CACHE_URL"] = newActionsCacheURL;
}