Skip to content

devbox update never clears the git plugin cache #3105

Open

Description

@mikeland73

Severity (from the audit): Medium

  • Where: internal/plugin/update.go:4, git.go:18 and cache.go:59-64.
  • Cause: Update() only clears githubCache, so gitCache stays stale for up to 24h.
  • Related: getOrFetch treats any cache read error as fatal. filecache.Set writes non-atomically, so a truncated entry breaks plugin loading until the cache is cleared.
  • Fix: Clear both caches, and treat an undecodable entry as a cache miss.

Found by an automated code audit, listed as finding #27 in specs/bug-checks.md (#3061). Line numbers refer to commit f7d01a7.

Generated by Claude Code

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

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions