Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Aug 30, 2024. It is now read-only.
/coder-v1-cliPublic archive

Show warning on coder-cli / Coder API version mismatch#158

Merged
cmoog merged 2 commits intomasterfromversion-warning
Oct 27, 2020

Conversation

cmoog
Copy link
Contributor

@cmoogcmoog commentedOct 24, 2020
edited
Loading

Show a warning to the user if the<major>.<minor> versions do not match between the CLI and Coder API.

Screen Shot 2020-10-24 at 6 30 10 PM

Testing

Trying running a build generated from./ci/steps/build.sh and see that the version is injected and the warning hidden.

@cmoogcmoog changed the titleShow warning on coder-cli / Coder API error mismatchShow warning on coder-cli / Coder API version mismatchOct 24, 2020
@cmoogcmoog marked this pull request as ready for reviewOctober 26, 2020 15:57
@cmoogcmoog requested a review fromcoadlerOctober 27, 2020 15:32
Copy link
Contributor

@coadlercoadler left a comment

Choose a reason for hiding this comment

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

New logging makes this look amazing

cmoog reacted with heart emoji
Comment on lines +57 to +61
clog.Log(clog.Warn(
"version mismatch detected",
fmt.Sprintf("coder-cli version: %s", version.Version),
fmt.Sprintf("Coder API version: %s", apiVersion), clog.BlankLine,
clog.Tipf("download the appropriate version here: https://github.com/cdr/coder-cli/releases"),
Copy link
Contributor

Choose a reason for hiding this comment

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

Just to make sure, this is thrown to stderr correct?

Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

Yup, all log levels are thrown in stderr.

coadler reacted with thumbs up emoji
@cmoogcmoog merged commit7a4312f intomasterOct 27, 2020
@cmoogcmoog deleted the version-warning branchOctober 27, 2020 15:46
Sign up for freeto subscribe to this conversation on GitHub. Already have an account?Sign in.
Reviewers

@coadlercoadlercoadler approved these changes

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

2 participants
@cmoog@coadler

[8]ページ先頭

©2009-2025 Movatter.jp