wvanderdeijl / nx-remotecache-gcs

Task runner for @nrwl/nx with remote caching using Google Cloud Storage
28 stars 14 forks source link

Ability to Disable Remote Cache via Environment Variable #19

Closed Alonmizra closed 2 days ago

Alonmizra commented 2 days ago

What

Introduce an environment variable (e.g., NX_SKIP_REMOTE_CACHE) that allows disabling the remote cache. When this variable is set, the system should utilize the local cache but refrain from interacting with the remote cache.

Motivation

While NX provides the NX_SKIP_NX_CACHE environment variable to disable caching entirely, there are scenarios where disabling only the remote cache is desirable while still benefiting from the local cache.

Examples

  1. In CI environments when connection issues occur.
  2. When dealing with a corrupted cache key.
  3. To verify that a failure is not related to a cache issue.
  4. When there are missing input keys.

Thank you for the great package! 🙏

wvanderdeijl commented 2 days ago

Great suggestion. I'll give a quick test, and then release a new version