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

fix: change manifest cache impl #888

Merged
merged 4 commits into from
Jun 28, 2023
Merged

fix: change manifest cache impl #888

merged 4 commits into from
Jun 28, 2023

Conversation

ayushmanchhabra
Copy link
Collaborator

@ayushmanchhabra ayushmanchhabra commented Jun 27, 2023

Fixes: #822

Description

  • Redownload manifest.json every time the nwbuild function is executed.
  • If manifest.json already exists and we are unable to connect to the nwjs.io domain (network related issues), then use the existing manifest.
  • If no manifest.json exists in the cache dir, then the validate function will catch this and throw an error - preventing the build.

@ayushmanchhabra ayushmanchhabra marked this pull request as ready for review June 27, 2023 17:43
@ayushmanchhabra
Copy link
Collaborator Author

ayushmanchhabra commented Jun 27, 2023

@sysrage I feel like this PR strikes a good balance w.r.t the discussion in #822.

cc @williamwang96

Copy link
Contributor

@williamwang96 williamwang96 left a comment

Choose a reason for hiding this comment

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

This looks great and is exactly what I was thinking!

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.

Cache never expires
2 participants