Skip to content

fix(docker-desktop): Fix regex for extracting published version - #1528

Merged
philclifford merged 1 commit into
wimpysworld:mainfrom
MH0386:main
Sep 30, 2025
Merged

philclifford merged 1 commit into
wimpysworld:mainfrom
MH0386:main

Conversation

@MH0386

@MH0386 MH0386 commented Sep 26, 2025

Copy link
Copy Markdown
Contributor

#1527

This pull request updates the logic for extracting the published version number of Docker Desktop from the cached release notes file. The new approach uses a more robust grep command with Perl-compatible regular expressions to accurately capture the version string.

Release version extraction improvement:

  • Updated the VERSION_PUBLISHED assignment in 01-main/packages/docker-desktop to use grep -oP for more precise extraction of the Docker Desktop version number from the release notes cache file.

@MH0386
MH0386 marked this pull request as ready for review September 26, 2025 19:06
@philclifford
philclifford merged commit 204423e into wimpysworld:main Sep 30, 2025
philclifford pushed a commit that referenced this pull request Aug 20, 2026
Both URL and VERSION_PUBLISHED extraction currently fail, so the package
errors out with "Missing required information" and is skipped.

VERSION_PUBLISHED used awk's three-argument match(), a gawk extension that
errors under mawk, the default awk on Debian and Ubuntu. This regressed in
753bfac (#1546), which reverted the grep -oP fix from 204423e (#1528).

The scraped URL was also malformed: a greedy match across the release-notes
markup dropped a path separator, producing .../amd64236836/... which 403s.

Switch to the appcast Docker Desktop's own updater consumes, which provides
the version, build number and artifact URL as data rather than markup. Select
on highest BuildNumber, since entries are ordered oldest-first and carry a
staged-rollout Visibility percentage, so neither document order nor
Visibility==100 identifies the newest build.

VERSION_PUBLISHED is now AppVersion-BuildNumber, matching the .deb's own
Version field. The previous bare version compared as older than an installed
build under dpkg --compare-versions, so rebuilds of the same version were
silently missed.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B6S1VtnD2yAkAXYsrfR1Kp
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