Skip to content

Commit de1e928

Browse files
OffgridwithJDclaude
andcommitted
build: parse beta/rc/devel PostgreSQL version strings
The meson build derived the major version with .split('.')[0].to_int(), which fails on pre-release version strings such as '19beta1' (no dot, non-numeric suffix). Strip a trailing beta/rc/devel suffix before converting, so the extension configures against pre-release PostgreSQL for testing. Release versions are unaffected. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent bd06e11 commit de1e928

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

meson.build

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ lz4 = dependency('liblz4', required: false)
7272
z = dependency('zlib')
7373
zstd = dependency('libzstd', required: false)
7474

75-
major_version = version.split(' ')[1].split('.')[0].to_int()
75+
major_version = version.split(' ')[1].split('.')[0].split('beta')[0].split('rc')[0].split('devel')[0].to_int()
7676

7777
fetools = 'fetools/pg@0@'.format(major_version)
7878

0 commit comments

Comments
 (0)