Commit ecc8f1d2 authored by Samuel E. Giddins's avatar Samuel E. Giddins

[Downloader] Run prepare_command even when skipping the cache

parent 9cc30d15
...@@ -13,6 +13,13 @@ To install release candidates run `[sudo] gem install cocoapods --pre` ...@@ -13,6 +13,13 @@ To install release candidates run `[sudo] gem install cocoapods --pre`
[Samuel Giddins](https://github.com/segiddins) [Samuel Giddins](https://github.com/segiddins)
[#2443](https://github.com/CocoaPods/CocoaPods/issues/2443) [#2443](https://github.com/CocoaPods/CocoaPods/issues/2443)
##### Bug Fixes
* Ensure that the `prepare_command` is run even when skipping the download
cache.
[Samuel Giddins](https://github.com/segiddins)
[#3674](https://github.com/CocoaPods/CocoaPods/issues/3674)
## 0.38.0.beta.1 ## 0.38.0.beta.1
......
...@@ -33,7 +33,9 @@ module Pod ...@@ -33,7 +33,9 @@ module Pod
cache = Cache.new(cache_path) cache = Cache.new(cache_path)
result = cache.download_pod(request) result = cache.download_pod(request)
else else
require 'cocoapods/installer/pod_source_preparer'
result, _ = download_request(request, target) result, _ = download_request(request, target)
Installer::PodSourcePreparer.new(result.spec, result.location).prepare!
end end
if target && result.location && target != result.location if target && result.location && target != result.location
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment