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 error with version check on nightly #3848

Merged
merged 2 commits into from
Jan 23, 2017
Merged

Conversation

TylerJewell
Copy link

@TylerJewell TylerJewell commented Jan 23, 2017

Signed-off-by: Tyler Jewell [email protected] [email protected]

With the new commit made where we check for newer versions on DockerHub, this check was being done for all versions including nightly. The compare_versions method would break if you had a nightly image. This fix adds a test to only do this check if you are not nightly.

Also, this cleans up some of the code around boot2docker checks. Unfortunately, since we are running our client inside of a Docker container, all we can do is print a warning message that you are on boot2docker and that you need to verify your host mounts.

Changelog and Release Note Information

Changelog: Skips DockerHub newer version check if using nightly image

Release Note

  • Added to release note

Signed-off-by: Tyler Jewell [email protected] <[email protected]>
@TylerJewell TylerJewell requested a review from benoitf January 23, 2017 00:13
@TylerJewell TylerJewell self-assigned this Jan 23, 2017
@TylerJewell TylerJewell added kind/bug Outline of a bug - must adhere to the bug report template. severity/P2 Has a minor but important impact to the usage or development of the system. labels Jan 23, 2017
@codenvy-ci
Copy link

@@ -369,7 +369,7 @@ verify_version_compatibility() {
CHE_IMAGE_VERSION=$(get_image_version)

# Only check for newer versions if not in offline mode.
Copy link
Contributor

Choose a reason for hiding this comment

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

we should add in the comment : "not in offline mode and not nightly"

@slemeur
Copy link
Contributor

slemeur commented Jan 23, 2017

Added to RN - can be merged

@benoitf benoitf merged commit fdb0b25 into master Jan 23, 2017
@benoitf benoitf deleted the cli-fix-nightly branch January 23, 2017 09:18
@benoitf benoitf added this to the 5.2.0 milestone Jan 23, 2017
@codenvy-ci
Copy link

riuvshin pushed a commit that referenced this pull request Jan 24, 2017
With the new commit made where we check for newer versions on DockerHub, this check was being done for all versions including nightly. The compare_versions method would break if you had a nightly image. This fix adds a test to only do this check if you are not nightly.

Also, this cleans up some of the code around boot2docker checks. Unfortunately, since we are running our client inside of a Docker container, all we can do is print a warning message that you are on boot2docker and that you need to verify your host mounts.

Signed-off-by: Tyler Jewell [email protected] <[email protected]>
@riuvshin riuvshin modified the milestones: 5.1.2, 5.2.0 Jan 24, 2017
JPinkney pushed a commit to JPinkney/che that referenced this pull request Aug 17, 2017
With the new commit made where we check for newer versions on DockerHub, this check was being done for all versions including nightly. The compare_versions method would break if you had a nightly image. This fix adds a test to only do this check if you are not nightly.

Also, this cleans up some of the code around boot2docker checks. Unfortunately, since we are running our client inside of a Docker container, all we can do is print a warning message that you are on boot2docker and that you need to verify your host mounts.

Signed-off-by: Tyler Jewell [email protected] <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Outline of a bug - must adhere to the bug report template. severity/P2 Has a minor but important impact to the usage or development of the system.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants