Skip to content

Instantly share code, notes, and snippets.

@souenzzo
Last active April 23, 2019 03:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save souenzzo/e23944fac595077f372aa662cde5ff91 to your computer and use it in GitHub Desktop.
Save souenzzo/e23944fac595077f372aa662cde5ff91 to your computer and use it in GitHub Desktop.
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