Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cli: fix version constraint for update check (close #3719) #3730

Merged
merged 2 commits into from
Jan 30, 2020

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