Skip to content

docs: fix offline installation cache key description - #53824

Merged
MarshallOfSound merged 1 commit into
electron:mainfrom
santichausis:docs/fix-offline-cache-key-description
Sep 26, 2026
Merged

MarshallOfSound merged 1 commit into
electron:mainfrom
santichausis:docs/fix-offline-cache-key-description

Conversation

@santichausis

@santichausis santichausis commented Sep 11, 2026 •

Copy link
Copy Markdown
Contributor

Description of Change

The offline installation cache section said the on-disk cache key is a checksum of the downloaded zip file, stored as [checksum]/[filename]. That's not what @electron/get actually does, and the docs' own example hash didn't match the file's checksum, which is what confused the issue reporter.

Per review feedback, this change no longer describes how @electron/get derives the key (that's an implementation detail of the cache, which lives in a different repo). It only stops calling the key a checksum, and replaces the example hash with the real directory name @electron/get produces for electron-v15.3.1-darwin-x64.zip.

Fixes #48316

Checklist

  • I have built and tested this change
  • I have filled out the PR description
  • I have reviewed and verified the changes
  • npm test passes
  • tests are changed or added
  • relevant API documentation, tutorials, and examples are updated and follow the documentation style guide
  • PR release notes describe the change in a way relevant to app developers, and are capitalized, punctuated, and past tense

Release Notes

Notes: none

@electron-cation electron-cation Bot added documentation 📓 semver/patch backwards-compatible bug fixes new-pr 🌱 PR opened recently labels Sep 11, 2026
@santichausis
santichausis force-pushed the docs/fix-offline-cache-key-description branch from 7cf7673 to f2993fe Compare September 11, 2026 02:03
Comment thread docs/tutorial/installation.md Resolved
@electron-cation electron-cation Bot removed the new-pr 🌱 PR opened recently label Sep 12, 2026
@santichausis
santichausis force-pushed the docs/fix-offline-cache-key-description branch from f2993fe to b53af94 Compare September 12, 2026 02:54

@MarshallOfSound MarshallOfSound left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I don't think we should document this, it becomes some weird "api" instead of an implementation details of the @electron/get cache (which is in a different repo).

I see no benefit in documenting this

@santichausis

Copy link
Copy Markdown
Contributor Author

@MarshallOfSound That's fair — the SHA256/URL-derivation detail is an implementation detail of @electron/get, not something these docs should pin down.

The original motivation (#48316) was just that the existing text was factually wrong: it called [key] a "checksum" of the downloaded zip, which it isn't. Would a minimal correction work instead, one that drops the derivation mechanism entirely and just stops mislabeling it?

Each cached zip file is stored under a directory named `[key]`, an identifier assigned by `@electron/get`. A typical cache might look like this:

(keeping the example tree below as-is). Happy to trim further, or drop this paragraph altogether if you'd rather the docs not touch on the key's meaning at all.

@MarshallOfSound

Copy link
Copy Markdown
Member

Would a minimal correction work instead, one that drops the derivation mechanism entirely and just stops mislabeling it?

Sure

@santichausis
santichausis force-pushed the docs/fix-offline-cache-key-description branch from b53af94 to eadc42d Compare September 20, 2026 12:54
@santichausis

Copy link
Copy Markdown
Contributor Author

Thanks — applied the minimal version (pushed as eadc42d) and updated the description to match. @nikwen @MarshallOfSound could you take another look when you get a chance?

@nikwen nikwen added target/44-x-y PR should also be added to the "44-x-y" branch. target/45-x-y PR should also be added to the "45-x-y" branch. and removed no-backport labels Sep 21, 2026

@nikwen nikwen left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Added backport labels because our website docs are built from the most recent stable branch.

Comment thread docs/tutorial/installation.md Resolved
@nikwen

nikwen commented Sep 21, 2026

Copy link
Copy Markdown
Member

Also, please rebase to fix CI errors.

@santichausis
santichausis force-pushed the docs/fix-offline-cache-key-description branch from eadc42d to 210aafe Compare September 21, 2026 14:06
@MarshallOfSound MarshallOfSound added target/44-x-y PR should also be added to the "44-x-y" branch. and removed target/44-x-y PR should also be added to the "44-x-y" branch. labels Sep 25, 2026
@MarshallOfSound
MarshallOfSound merged commit 690ccdd into electron:main Sep 26, 2026
57 checks passed
@release-clerk

release-clerk Bot commented Sep 26, 2026

Copy link
Copy Markdown

No Release Notes

@trop

trop Bot commented Sep 26, 2026

Copy link
Copy Markdown
Contributor

I have automatically backported this PR to "44-x-y", please check out #54458

@trop

trop Bot commented Sep 26, 2026

Copy link
Copy Markdown
Contributor

I have automatically backported this PR to "45-x-y", please check out #54459

@trop trop Bot added in-flight/45-x-y merged/45-x-y PR was merged to the "45-x-y" branch. merged/44-x-y PR was merged to the "44-x-y" branch. and removed target/44-x-y PR should also be added to the "44-x-y" branch. target/45-x-y PR should also be added to the "45-x-y" branch. in-flight/45-x-y in-flight/44-x-y labels Sep 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

46-x-y documentation 📓 merged/44-x-y PR was merged to the "44-x-y" branch. merged/45-x-y PR was merged to the "45-x-y" branch. semver/patch backwards-compatible bug fixes

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

Update Electron offline installation docs

3 participants