Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[plugins] Add env var to control github cache ttl #2314

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

mikeland73
Copy link
Contributor

Summary

This adds new experimental env var DEVBOX_X_GITHUB_PLUGIN_CACHE_TTL that controls how long devbox caches github plugins. The default is 24h.

Ideally we store plugin versions in lockfile, but this can help improve UX in the meantime.

How was it tested?

Added print statement to monitor network requests

DEVBOX_X_GITHUB_PLUGIN_CACHE_TTL=0 devbox run echo hello
DEVBOX_X_GITHUB_PLUGIN_CACHE_TTL=1s devbox run echo hello
DEVBOX_X_GITHUB_PLUGIN_CACHE_TTL=1h devbox run echo hello

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants