Skip to content

Let repos.json override broken release metadata - #78

Merged
sjoelund merged 1 commit into
masterfrom
sdf-extra-provides
Sep 15, 2026
Merged

sjoelund merged 1 commit into
masterfrom
sdf-extra-provides

Conversation

@sjoelund

Copy link
Copy Markdown
Member

The v0.4.4 release of SDF-Modelica carries version="0.4.3" in its package.mo annotation, in both the git tag and the release zip-file, so the index named it 0.4.3 and nothing could resolve SDF 0.4.4. Switching the entry from the Modelica-OpenVendorSpecificLibraries/SDF stub to the upstream repository also dropped 0.4.0 to 0.4.2, which existed only as conversion(noneFromVersion=...) entries on that stub's master branch.

Together that left 15 index entries unresolvable:

Library Versions Wants SDF
AixLib 0.9.0 - 1.3.0 0.4.1
AixLib 1.3.1 - 3.0.0 0.4.2
AixLib 3.0.1, 3.0.1-main, main 0.4.4
TRANSFORM 1.0.0-beta 0.4.0
TRANSFORM 1.0.0-Before_MSL_4.0 0.4.1

installPackage fails outright on those, since
versionsThatProvideTheWanted comes back empty and the fallback for transitive dependencies only relaxes an exact match when some version claims to provide the wanted one.

Neither the annotation nor the tag can be corrected once a release is out, so add extra-provides to name versions a release provides beyond the ones its conversion annotation declares, and set the existing semverTagOverridesAnnotation for SDF so that the tag wins over the annotation it forgot to bump.

The versions SDF 0.4.5 is declared to provide are transcribed from the conversion annotation upstream added for 0.4.6, so the entry can be dropped once that is released.

extra-provides is applied in genindex rather than updateinfo: updateinfo re-crawls a ref only when its sha or zip-file URL changes, so an override stored in rawdata.json would not take effect until upstream happened to push. A version listed here that no release has is reported, not fatal, so that a deleted GitHub release cannot break the index job for every library.

Assisted-by: Claude Opus 5 (1M context)

The v0.4.4 release of SDF-Modelica carries `version="0.4.3"` in its
`package.mo` annotation, in both the git tag and the release zip-file,
so the index named it 0.4.3 and nothing could resolve SDF 0.4.4.
Switching the entry from the `Modelica-OpenVendorSpecificLibraries/SDF`
stub to the upstream repository also dropped 0.4.0 to 0.4.2, which
existed only as `conversion(noneFromVersion=...)` entries on that stub's
master branch.

Together that left 15 index entries unresolvable:

| Library   | Versions                | Wants SDF |
| --------- | ----------------------- | --------- |
| AixLib    | 0.9.0 - 1.3.0           | 0.4.1     |
| AixLib    | 1.3.1 - 3.0.0           | 0.4.2     |
| AixLib    | 3.0.1, 3.0.1-main, main | 0.4.4     |
| TRANSFORM | 1.0.0-beta              | 0.4.0     |
| TRANSFORM | 1.0.0-Before_MSL_4.0    | 0.4.1     |

`installPackage` fails outright on those, since
`versionsThatProvideTheWanted` comes back empty and the fallback for
transitive dependencies only relaxes an exact match when some version
claims to provide the wanted one.

Neither the annotation nor the tag can be corrected once a release is
out, so add `extra-provides` to name versions a release provides beyond
the ones its conversion annotation declares, and set the existing
`semverTagOverridesAnnotation` for SDF so that the tag wins over the
annotation it forgot to bump.

The versions SDF 0.4.5 is declared to provide are transcribed from the
`conversion` annotation upstream added for 0.4.6, so the entry can be
dropped once that is released.

`extra-provides` is applied in `genindex` rather than `updateinfo`:
`updateinfo` re-crawls a ref only when its sha or zip-file URL changes,
so an override stored in rawdata.json would not take effect until
upstream happened to push. A version listed here that no release has is
reported, not fatal, so that a deleted GitHub release cannot break the
index job for every library.

Assisted-by: Claude Opus 5 (1M context)
@sjoelund
sjoelund enabled auto-merge (squash) September 15, 2026 05:34
@sjoelund
sjoelund merged commit 56451a9 into master Sep 15, 2026
4 checks passed
@sjoelund
sjoelund deleted the sdf-extra-provides branch September 15, 2026 05:40
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.

1 participant