Skip to content

Update registry-lib to accept 500-character descriptions - #1433

Merged
f-f merged 2 commits into
masterfrom
fix/registry-description-limit
Nov 29, 2026
Merged

f-f merged 2 commits into
masterfrom
fix/registry-description-limit

Conversation

@thomashoneyman

@thomashoneyman thomashoneyman commented Oct 23, 2026 •

Copy link
Copy Markdown
Member

I went to upgrade Try PureScript to use spago only, but it refers to harmonia, and Spago chokes on that package because an entry in its registry index uses a 432-character description and that exceeds the 300-character limit in Spago’s bundled registry-lib. Spago reads all versions before selecting the requested one, so this also affects 0.2.0, even though in the used package version the description is only 286 characters.

The registry now permits descriptions up to 500 characters via purescript/registry-dev#775. We need to bump Spago’s registry-lib dependency to pick up that change. This change updates registry-lib and adapts the description and job-query APIs. It also adds the SPDX license IDs dependency now imported by the library.

The updated library no longer exports loadAndSolve, so Spago now loads the reachable dependency manifests before calling solve.

@thomashoneyman
thomashoneyman requested a review from f-f October 23, 2026 19:35
@thomashoneyman

Copy link
Copy Markdown
Member Author

(After this, it'd be nice to release spago@1.0.6)

@afcondon

Copy link
Copy Markdown

Hit this again today with hylograph-flow-render@0.7.0 (a 363-character description): the registry accepts it under the new 500 limit, and spago 1.0.5 then cannot resolve any version of the package, older ones included. I'll unpublish and republish under 300 as a workaround, but a 1.0.6 with this change would close the gap for anything published between 301 and 500 characters. Thanks for the fix.

@f-f
f-f merged commit 7600d9f into master Nov 29, 2026
5 checks passed
@f-f
f-f deleted the fix/registry-description-limit branch November 29, 2026 13:35
@f-f

f-f commented Nov 29, 2026

Copy link
Copy Markdown
Member

Thanks for the ping! As you can both guess by now I am swamped by work/health/general-logistics 😂

I have released 1.0.6 with this.

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.

3 participants