Skip to content

Remove experimental feature#2087

Merged
dgageot merged 1 commit intodocker:mainfrom
dgageot:remove-experimental-feature
Mar 12, 2026
Merged

Remove experimental feature#2087
dgageot merged 1 commit intodocker:mainfrom
dgageot:remove-experimental-feature

Conversation

@dgageot
Copy link
Member

@dgageot dgageot commented Mar 12, 2026

No description provided.

Signed-off-by: David Gageot <david.gageot@docker.com>
@dgageot dgageot requested a review from a team as a code owner March 12, 2026 14:23
Copy link

@docker-agent docker-agent bot left a comment

Choose a reason for hiding this comment

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

Review Summary

Assessment: 🟢 APPROVE

Summary

This PR cleanly removes an experimental token refresh feature from pkg/desktop/login.go. The changes are purely deletive:

  • Removes unused imports (log/slog, os, os/exec, time, jwt)
  • Removes helper functions: fetchToken(), isTokenExpired(), and runDockerLogin()
  • Simplifies GetToken() to only fetch the token without expiration checking or refresh logic

No bugs detected. The simplified GetToken() function correctly uses the existing ClientBackend.Get() API. All removed code was self-contained experimental functionality gated by the EXPERIMENTAL_DOCKER_TOKEN_REFRESH environment variable.

Findings

No issues found in the changed code.


This review focuses only on code added or modified in this PR.

@dgageot dgageot merged commit 424af20 into docker:main Mar 12, 2026
8 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