tembo-io / trunk

Package manager and registry for Postgres extensions
PostgreSQL License
231 stars 14 forks source link

registry: add default value for `pg_version` if not found in manifest #681

Closed vrmiguel closed 3 months ago

vrmiguel commented 3 months ago

The publish endpoint would occasionally fail with Failed to decompress Trunk archive (PLAT-112). It appears this is because of how we fetch the Postgres version a package was built for: checking for pg_version within manifest.json.

Older versions of Trunk CLI did not append this info which caused the endpoint to fail. The new behavior is to assume the Postgres version is 15 since, if the user's Trunk CLI was old enough to not append this info, it'd also not be enough to build the extension for any other version other than 15.

theory commented 3 months ago

Looks good to me!