def version_for_cache
      @version_for_cache ||= if fetcher.version_for_cache
                               fetcher.version_for_cache
                             elsif version
                               version
                             else
                               log.warn(log_key) do
                                 "No version given! This is probably a bad thing. I am going to " \
                                 "assume the version `0.0.0', but that is most certainly not your " \
                                 "desired behavior. If git caching seems off, this is probably why."
                               end

                               "0.0.0"
                             end
    end
def version_for_cache
      @version_for_cache ||= if fetcher.version_for_cache
                               fetcher.version_for_cache
                             elsif version
                               version
                             else
                               log.warn(log_key) do
                                 "No version given! This is probably a bad thing. I am going to " \
                                 "assume the version `0.0.0', but that is most certainly not your " \
                                 "desired behavior. If git caching seems off, this is probably why."
                               end

                               "0.0.0"
                             end
    end
Returns the version to be used in cache.