adriens / chocolatey-schemacrawler

Chocolatey package source to install schemacrawler
2 stars 1 forks source link

"choco upgrade schemacrawler --version 16.4.2" broken #56

Closed adriens closed 3 years ago

adriens commented 3 years ago

choco upgrade schemacrawler --version 16.4.2

schemacrawler is not installed. Installing...
schemacrawler not installed. The package was not found with the source(s) listed.
 Source(s): 'https://chocolatey.org/api/v2/'
 NOTE: When you specify explicit sources, it overrides default sources.
If the package version is a prerelease and you didn't specify `--pre`,
 the package may not be found.
Version was specified as '16.4.2'. It is possible that version
 does not exist for 'schemacrawler' at the source specified.
Please see https://chocolatey.org/docs/troubleshooting for more
 assistance.

Chocolatey upgraded 0/1 packages. 1 packages failed.
 See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).

Failures
 - schemacrawler - schemacrawler not installed. The package was not found with the source(s) listed.
 Source(s): 'https://chocolatey.org/api/v2/'
 NOTE: When you specify explicit sources, it overrides default sources.
If the package version is a prerelease and you didn't specify `--pre`,
 the package may not be found.
Version was specified as '16.4.2'. It is possible that version
 does not exist for 'schemacrawler' at the source specified.
Please see https://chocolatey.org/docs/troubleshooting for more
 assistance.
adriens commented 3 years ago

Giving a try to choco install schemacrawler --version=16.14.2

adriens commented 3 years ago

Following steps applied :

  1. First get a clean env : choco uninstall schemacrawler
  2. Then install the current version 16.4.1 : choco install schemacrawler

Then I got :

C:\WINDOWS\system32>schemacrawler -version
SchemaCrawler 16.14.1

Error: Missing required options: '--command=<command>', '--info-level=<infolevel>'

Run SchemaCrawler again with just the
-h
option for help

Or, run SchemaCrawler again with an additional
--log-level=CONFIG
option for details on the error

Additional resources are on the SchemaCrawler website,
https://www.schemacrawler.com
and a live, interactive tutorial is on
https://katacoda.com/schemacrawler

Then force the latest yet not published : choco upgrade schemacrawler --version 16.14.2

Then I got :

C:\WINDOWS\system32>choco upgrade schemacrawler --version 16.14.2
Chocolatey v0.10.15
Upgrading the following packages:
schemacrawler
By upgrading you accept licenses for the packages.

You have schemacrawler v16.14.1 installed. Version 16.14.2 is available based on your source(s).
Progress: Downloading jre8 8.0.231... 100%
Progress: Downloading schemacrawler 16.14.2... 100%

Then I got this :

C:\WINDOWS\system32>schemacrawler -version
SchemaCrawler 16.14.2

Error: Missing required options: '--command=<command>', '--info-level=<infolevel>'

Run SchemaCrawler again with just the
-h
option for help

Or, run SchemaCrawler again with an additional
--log-level=CONFIG
option for details on the error

Additional resources are on the SchemaCrawler website,
https://www.schemacrawler.com
and a live, interactive tutorial is on
https://katacoda.com/schemacrawler
adriens commented 3 years ago

So upgrade was successful.

aisbergde commented 3 years ago

I tried this before, but it didn't work: choco upgrade schemacrawler --version=16.14.2

but the following works fine: choco install schemacrawler --version=16.14.2