Thanks to visit codestin.com
Credit goes to github.com

Skip to content

feat: add version checking to CLI #2643

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

Merged
merged 18 commits into from
Jun 29, 2022
Merged

feat: add version checking to CLI #2643

merged 18 commits into from
Jun 29, 2022

Conversation

sreya
Copy link
Collaborator

@sreya sreya commented Jun 24, 2022

version_warning

fixes #2578

@sreya sreya marked this pull request as ready for review June 24, 2022 22:19
@sreya sreya requested a review from kylecarbs June 24, 2022 22:20
@sreya sreya requested a review from a team as a code owner June 24, 2022 22:21
@sreya sreya removed the request for review from a team June 24, 2022 22:22
@sreya sreya requested a review from kylecarbs June 24, 2022 22:43
cli/root.go Outdated
Comment on lines 382 to 385
fmtWarningText := `client/server versions do not match
client version: %s
server version: %s
to download the appropriate version run 'curl -L https://coder.com/install.sh | sh -s -- --version %s'
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I feel like we could shorten this up a bit. What do you think about:

version mismatch: client %s, server %s
download the server version with: ...

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💯

@sreya sreya merged commit 7ee7be3 into main Jun 29, 2022
@sreya sreya deleted the jon/version branch June 29, 2022 01:55
coadler added a commit that referenced this pull request Jun 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Warn user when CLI version is out of date
4 participants