Skip to content

pgformatter Docker image is broken #93

@andrew-farries

Description

@andrew-farries

The most recent version of pgformatter pushed to Dockerhub appears to be broken:

To reproduce:

$ docker rmi backplane/pgformatter:latest
$ docker run --rm backplane/pgformatter:latest

Produces the output:

Uncaught exception: Uncaught exception: Uncaught exception: Uncaught exception: Possible precedence problem between ! and string eq at /usr/local/lib/perl5/site_perl/5.42.0/pgFormatter/Beautify.pm line 510.
 at /usr/local/bin/pg_format line 19.
        main::__ANON__("Possible precedence problem between ! and string eq at /usr/l"...) called at /usr/local/lib/perl5/site_perl/5.42.0/pgFormatter/Beautify.pm line 510
        require pgFormatter/Beautify.pm called at /usr/local/lib/perl5/site_perl/5.42.0/pgFormatter/CLI.pm line 26
        pgFormatter::CLI::BEGIN() called at /usr/local/lib/perl5/site_perl/5.42.0/pgFormatter/CLI.pm line 26
        eval {...} called at /usr/local/lib/perl5/site_perl/5.42.0/pgFormatter/CLI.pm line 26
        require pgFormatter/CLI.pm called at /usr/local/bin/pg_format line 45
Compilation failed in require at /usr/local/lib/perl5/site_perl/5.42.0/pgFormatter/CLI.pm line 26.
 at /usr/local/bin/pg_format line 19.
        main::__ANON__("Uncaught exception: Possible precedence problem between ! and"...) called at /usr/local/lib/perl5/site_perl/5.42.0/pgFormatter/CLI.pm line 26
        pgFormatter::CLI::BEGIN() called at /usr/local/lib/perl5/site_perl/5.42.0/pgFormatter/CLI.pm line 26
        eval {...} called at /usr/local/lib/perl5/site_perl/5.42.0/pgFormatter/CLI.pm line 26
        require pgFormatter/CLI.pm called at /usr/local/bin/pg_format line 45
BEGIN failed--compilation aborted at /usr/local/lib/perl5/site_perl/5.42.0/pgFormatter/CLI.pm line 26.
 at /usr/local/bin/pg_format line 19.
        main::__ANON__("Uncaught exception: Uncaught exception: Possible precedence p"...) called at /usr/local/lib/perl5/site_perl/5.42.0/pgFormatter/CLI.pm line 26
        require pgFormatter/CLI.pm called at /usr/local/bin/pg_format line 45
Compilation failed in require at /usr/local/bin/pg_format line 45.
 at /usr/local/bin/pg_format line 19.
        main::__ANON__("Uncaught exception: Uncaught exception: Uncaught exception: P"...) called at /usr/local/bin/pg_format line 45

As there is only a latest tag available there is no way to pin to the previous working version.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions