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

Improve the lockfile version warning message #1758

Merged
merged 1 commit into from Jan 20, 2014
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 3 additions & 3 deletions lib/cocoapods/installer.rb
Expand Up @@ -155,15 +155,15 @@ def generate_pods_project


# @return [void] # @return [void]
# #
# @note The warning about the version of the Lockfile doesn't uses the # @note The warning about the version of the Lockfile doesn't use the
# `UI.warn` method because it prints the output only at the end # `UI.warn` method because it prints the output only at the end
# of the installation. At that time CocoaPods could have crashed. # of the installation. At that time CocoaPods could have crashed.
# #
def analyze def analyze
if lockfile && lockfile.cocoapods_version > Version.new(VERSION) if lockfile && lockfile.cocoapods_version > Version.new(VERSION)
STDERR.puts '[!] The version of CocoaPods used to generate the lockfile is '\ STDERR.puts '[!] The version of CocoaPods used to generate the lockfile is '\
'higher that the one of the current executable. Incompatibility ' \ 'higher than the version of the current executable. Incompatibility ' \
'issues might arise.'.yellow 'issues may arise.'.yellow
end end


analyzer = Analyzer.new(sandbox, podfile, lockfile) analyzer = Analyzer.new(sandbox, podfile, lockfile)
Expand Down