edgedb-cli icon indicating copy to clipboard operation
edgedb-cli copied to clipboard

Downgrading a project results in an incorrect error message

Open fmoor opened this issue 1 year ago • 2 comments

  • EdgeDB Version: 4.7
  • EdgeDB CLI Version: 5.1.0+7c5764f
  • OS Version: 22.04.2-Ubuntu

Requesting an upgrade to a lower version fails with a message that doesn't recognize the requested version. I don't know if downgrading is supposed to work or not but the error message should make sense if it is not supported.

Steps to Reproduce:

$ edgedb project upgrade --to-version 4.6
Already up to date.
Requested upgrade version is 4.7, current instance version is 4.7.

fmoor avatar Jul 08 '24 16:07 fmoor

I believe you have to use =4.6 to get exact version matching in CLI commands, but I think we should also add the message we have when edgedb.toml specifies a version but a newer version "matches".

scotttrinh avatar Jul 08 '24 16:07 scotttrinh

It seems like part of the confusion here is that the CLI wants =4.6 for a specific 4.x version instead of the latest 4.x version. The output from specifying =4.6 seems to miss understand the pinned version.

$ edgedb project upgrade --to-version =4.6
Already up to date.
Requested upgrade version is 4.6, current instance version is 4.7.

fmoor avatar Jul 08 '24 16:07 fmoor