markgardner / node-flywaydb

NodeJs wrapper for flywaydb cli
Apache License 2.0
60 stars 26 forks source link

flyway-commandline 9.1.0 missing build artifacts #42

Closed wgwz closed 2 years ago

wgwz commented 2 years ago

Upstream: https://issues.sonatype.org/browse/MVNCENTRAL-7548

https://repo1.maven.org/maven2/org/flywaydb/flyway-commandline/9.1.0/

At time of writing there are missing tar.gz artifacts for the 9.1.0 version.

Results in command failure within node-flywaydb:

❯ yarn migrate
yarn run v1.22.15
$ flyway -c flyway.js migrate
DOWNLOADING https://repo1.maven.org/maven2/org/flywaydb/flyway-commandline/maven-metadata.xml
DOWNLOADING https://repo1.maven.org/maven2/org/flywaydb/flyway-commandline/9.1.0/flyway-commandline-9.1.0-macosx-x64.tar.gz
/Users/kyle/regen/registry-server/node_modules/node-flywaydb/bin/flyway.js:76
            throw new Error(err);
                  ^

Error: Error: Request failed for https://repo1.maven.org/maven2/org/flywaydb/flyway-commandline/9.1.0/flyway-commandline-9.1.0-macosx-x64.tar.gz - 404
    at /Users/kyle/regen/registry-server/node_modules/node-flywaydb/bin/flyway.js:76:19
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
error Command failed with exit code 1.
wgwz commented 2 years ago

Pinning the flyway version to 9.0.4 worked for resolving this situation. Closing this issue.

Pinning like so: https://github.com/markgardner/node-flywaydb/blob/master/sample/config.js#L17

wgwz commented 2 years ago

Note: the issue is resolved in this latest build (tar.gz archives present) https://repo1.maven.org/maven2/org/flywaydb/flyway-commandline/9.1.2/