pganalyze / pg_query

Ruby extension to parse, deparse and normalize SQL queries using the PostgreSQL query parser

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Can't install with Ruby 3.1.1

feliperaul opened this issue · comments

commented

I'm getting this message when trying to install with latest ruby 3.1.1 on a Mac:

google-protobuf-3.19.4-x86_64-darwin requires ruby version < 3.1.dev, >= 2.5, which is incompatible with the current version, ruby 3.1.1p18

I guess that gem install google-protobuf also fails on Ruby 3.1.1 - if yes, then we are waiting for google-protobuf to support 3.1.1.

@olleolleolle It seems that google-protobuf is Ruby 3.1.x ready: protocolbuffers/protobuf#9566

I am locally testing v3.20.1 of google-protobuf with Ruby 3.1.2.

I was able now to install:

➜  ~ gem i  pg_query

Fetching pg_query-2.1.3.gem
Fetching google-protobuf-3.20.1-x86_64-darwin.gem
Successfully installed google-protobuf-3.20.1-x86_64-darwin
Building native extensions. This could take a while...
Successfully installed pg_query-2.1.3
2 gems installed
➜  ~ ruby -v
ruby 3.1.2p20 (2022-04-12 revision 4491bb740a) [x86_64-darwin21]

@feliperaul Can this Issue now be considered closable?

Although original report was for Mac, worth noting that Ruby 3.1 is still not working on Windows. This PR should fix it: protocolbuffers/protobuf#9963

Closing this, since 3.1 has been supported for a while now.