Skip to content

Instantly share code, notes, and snippets.

@souenzzo souenzzo/deps.edn
Last active Apr 23, 2019

Embed
What would you like to do?
import do not search for cljc files
;; should work, once it was required first
;; clj -Srepro -Sdeps '{:deps {import-bug {:git/url "https://gist.github.com/souenzzo/e23944fac595077f372aa662cde5ff91" :sha "fd49010c7fee88bc3fb705d5fd494718bbd16f18"}}}' -m ok
;; should fail, once import will not search for cljc files
;; clj -Srepro -Sdeps '{:deps {import-bug {:git/url "https://gist.github.com/souenzzo/e23944fac595077f372aa662cde5ff91" :sha "fd49010c7fee88bc3fb705d5fd494718bbd16f18"}}}' -m fail
{:paths ["."]
:deps {org.clojure/clojure {:mvn/version "1.10.1-beta2"}}}
(ns fail
(:import (record MyRecord)))
(defn -main [& _] (prn "fail?"))
(ns ok
(:require record)
(:import (record MyRecord)))
(defn -main [& _] (prn "fail?"))
(ns record)
(defrecord MyRecord [] :load-ns true)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.