Skip to content

Semver handling doesn't work for Apple RSRs #22919

@iansltx

Description

@iansltx

💥  Actual behavior

Apple RSRs (e.g. macOS 13.5.1 (a)) fail to parse in semver.NewVersion(), causing issues like #22829. We have a workaround for that particular issue, but elsewhere in our codebase we'll still fail.

🧑‍💻  Steps to reproduce

  1. Find a usage of semver.NewVersion()
  2. Pass it one of the RSR versions (a version suffixed with a letter in parentheses) specified in TestOperatingSystemRequiresNudge.

🕯️ More info

We're using a third-party package for Semver parsing, so first order of business is to see if upgrading to the latest (major) version (3.3.0 as of this ticket's creation) fixes the issue (it probably doesn't). Next step is finding out whether contributing a fix upstream would be accepted, and if not whether we wrap this behavior in the codebase (in the ten places it's used) or fork the entire library.

Metadata

Metadata

Assignees

Labels

#g-softwareSoftware product group:releaseReady to write code. Scheduled in a release. See "Making changes" in handbook.bugSomething isn't working as documented~backendBackend-related issue.~released bugThis bug was found in a stable release.

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions