chore: Update cli latest v2 version to pre-release#2094
Conversation
|
Can you explain where we consume this version? I thought the only consumer is the GitHub action |
|
@erezrokah it is used by this code to detect the latest available CLI version: https://github.com/cloudquery/cloudquery/blob/main/cli/internal/plugins/versions.go#L36-L48 AFAIK currently we are not using it in the new CLI, but at some point soon we will be using it to detect whether a new version is available. |
That code is only used in a commented out test I think |
|
@erezrokah Yes, the test is fixed in this PR: #2097 And yeah, we're not using this function right now, but it will be used to check for new versions and then display a message on the CLI if a new version available. |
Ah makes sense, thanks for clarifying |
This updates
sites/versions/v2/cli.jsontocli-v1.1.0-pre.1, which is a pre-release. Normally we wouldn't use pre-releases here, but having this would be better than having an empty string as we can then test the flow of end-to-end (related: #2076). It will be updated automatically as soon as we do a real v1 release.