Skip to content

Flyway 9.16.0 Compatibility #18

@dan-nawrocki

Description

@dan-nawrocki

On a fresh node:18 docker container, this package doesn't work w/ flyway 9.16.0+. I get the following error:

root@6e80633887f5:/xxx# npm run flyway

> test-project@0.0.1 flyway
> flyway -cleanDisabled=false -user=postgres -password=xxx -url=jdbc:postgresql://localhost/postgres -locations=filesystem:db,filesystem:testdb

/xxx/node_modules/.bin/../flywaydb-cli/bin/jre/bin/java: error while loading shared libraries: libjli.so: cannot open shared object file: No such file or directory

On flyway versions 9.15.2 and earlier, it looks like the lib directory is created correctly:

root@6e80633887f5:/xxx# ls -la node_modules/flywaydb-cli/bin/jre/
total 32
drwxr-xr-x  6 root root 4096 Apr  4 17:15 .
drwxr-xr-x  9 root root 4096 Apr  4 17:15 ..
-rwxr-xr-x  1 root root 2439 Apr  4 17:15 NOTICE
drwxr-xr-x  2 root root 4096 Apr  4 17:15 bin
drwxr-xr-x  5 root root 4096 Apr  4 17:15 conf
drwxr-xr-x 52 root root 4096 Apr  4 17:15 legal
drwxr-xr-x  5 root root 4096 Apr  4 17:15 lib
-rwxr-xr-x  1 root root 1588 Apr  4 17:15 release

However, with 9.16.0 and later, the lib directory is NOT created:

root@6e80633887f5:/xxx# ls -la node_modules/flywaydb-cli/bin/jre/
total 24
drwxr-xr-x 5 root root 4096 Apr  4 17:16 .
drwxr-xr-x 6 root root 4096 Apr  4 17:16 ..
-rwxr-xr-x 1 root root 2439 Apr  4 17:16 NOTICE
drwxr-xr-x 2 root root 4096 Apr  4 17:16 bin
drwxr-xr-x 5 root root 4096 Apr  4 17:16 conf
drwxr-xr-x 4 root root 4096 Apr  4 17:16 legal

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions