这是indexloc提供的服务,不要输入任何密码
Skip to content

Conversation

@shahidhk
Copy link
Member

Description

f6a43fe changed the semver check constraint that compares latest and current cli versions for update checks. If current version is v1.0.0 and latest version is also v1.0.0, cli updates itself even though the versions are the same. This is because the constraint adds a -0 and effectively 1.0.0-0 is behind 1.0.0.

Affected components

  • CLI

Related Issues

close #3719

Solution and Design

The constraint is changed back to how it was. Since we don't publish pre-release versions via the API this won't cause any issues with update checks.

Steps to test and verify

Build CLI with v1.0.0 and execute hasura update-cli, earlier cli updates itself to v1.0.0 but now it says already at updated version.

@shahidhk shahidhk requested a review from arvi3411301 January 17, 2020 09:44
@shahidhk shahidhk added c/cli Related to CLI k/bug Something isn't working labels Jan 17, 2020
@netlify
Copy link

netlify bot commented Jan 17, 2020

Deploy preview for hasura-docs ready!

Built with commit 071a564

https://deploy-preview-3730--hasura-docs.netlify.com

@hasura-bot
Copy link
Contributor

Review app for commit 0248ebd deployed to Heroku: https://hge-ci-pull-3730.herokuapp.com
Docker image for server: hasura/graphql-engine:pull3730-0248ebd7

@hasura-bot
Copy link
Contributor

Review app for commit 071a564 deployed to Heroku: https://hge-ci-pull-3730.herokuapp.com
Docker image for server: hasura/graphql-engine:pull3730-071a5645

@shahidhk shahidhk merged commit 64485a0 into hasura:master Jan 30, 2020
@hasura-bot
Copy link
Contributor

Review app https://hge-ci-pull-3730.herokuapp.com is deleted

@shahidhk shahidhk deleted the fix-cli-update-check branch January 30, 2020 09:11
polRk pushed a commit to polRk/graphql-engine that referenced this pull request Feb 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

c/cli Related to CLI k/bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

cli: version constraint for update check is wrong

3 participants