Skip to content

fix: cache bust on http checksum failure#567

Merged
dsherret merged 2 commits intodenoland:mainfrom
dsherret:fix_cache_bust_on_lockfile_failure
Feb 6, 2025
Merged

fix: cache bust on http checksum failure#567
dsherret merged 2 commits intodenoland:mainfrom
dsherret:fix_cache_bust_on_lockfile_failure

Conversation

@dsherret
Copy link
Member

@dsherret dsherret commented Feb 6, 2025

This attempts to cache bust the remote specifier on checksum failure. This is useful in the following scenario:

  1. User downloads a remote module from esm.sh to their local cache
  2. esm.sh changes their code
  3. Another dev updates the lockfile in the repo
  4. User pulls in the new lockfile and attempts running their code, only to get an error (with this change, it now pulls it in)

@dsherret dsherret requested a review from bartlomieju February 6, 2025 21:16
Copy link
Member

@bartlomieju bartlomieju left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

@dsherret dsherret merged commit 72f0944 into denoland:main Feb 6, 2025
16 checks passed
@dsherret dsherret deleted the fix_cache_bust_on_lockfile_failure branch February 6, 2025 22:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants