     (cond
       ;; don't merge .cljc file if a .cljs of the same name exists
       (and cljc? (contains? (:sources state) cljs-name))
-      (do (log-warning logger (format "File conflict: \"%s\" -> \"%s\" (using \"%s\")" name cljs-name url))
+      (do (log-warning logger (format "File conflict: \"%s\" -> \"%s\" (using \"%s\")" name cljs-name cljs-name))
           state)
 
       ;; if a .cljc exists for a .cljs file unmerge the .cljc and merge the .cljs
       (and (is-cljs? name) (contains? (:sources state) cljc-name))
-      (do (log-warning logger (format "File conflict: \"%s\" -> \"%s\" (using \"%s\")" name cljs-name url))
+      (do (log-warning logger (format "File conflict: \"%s\" -> \"%s\" (using \"%s\")" name cljc-name name))
           (-> state
               (unmerge-resource cljc-name)
               (assoc-in [:sources name] src)


      (let [state (conj-in state [:deps-visited] name)
            state (->> requires
                       (map #(get-in state [:provide->source %]))
                       (into #{})
                       (reduce get-deps-for-src* state))]
        (conj-in state [:deps-ordered] name)

          :warnings warnings
          :source-map source-map)))))


;; FIXME: must manually bump if anything cache related changes
;; use something similar to clojurescript-version
(def cache-file-version "v1")

(defn get-cache-file-for-rc
  [{:keys [cache-dir] :as state} {:keys [name] :as rc}]
  (io/file cache-dir "ana" (str name "." cache-file-version ".cache.transit.json")))

(defn load-cached-cljs-resource
  [{:keys [logger cache-dir] :as state} {:keys [ns js-name name last-modified] :as rc}]
