Skip to content

Cache Swiftly Update Checking - #616

Merged
etcwilde merged 1 commit into
swiftlang:mainfrom
etcwilde:ewilde/delayed-updates
Nov 3, 2026
Merged

etcwilde merged 1 commit into
swiftlang:mainfrom
etcwilde:ewilde/delayed-updates

Conversation

@etcwilde

@etcwilde etcwilde commented Nov 3, 2026

Copy link
Copy Markdown
Member

We don't need to check for a Swiftly update on every invocation. Relax the check to only check every 24 hours. A swiftly self-update always checks for an update, so it will always bump the last-checked time. In the other cases, we only re-check after 24 hours since the last time we checked.

This strikes a balance between entirely disabling the version check and checking on every Swiftly invocation.
Reported as an issue with the VSCode plugin: https://forums.swift.org/t/vscode-swift-hits-network-every-2s-via-swiftly/90352.

We don't need to check for a Swiftly update on every invocation. Relax
the check to only check every 24 hours. A `swiftly self-update` always
checks for an update, so it will always bump the last-checked time.
In the other cases, we only re-check after 24 hours since the last time
we check.
@etcwilde
etcwilde merged commit 2be7dc9 into swiftlang:main Nov 3, 2026
27 checks passed
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