Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove hard dependency on ClojureScript #52

Merged
merged 2 commits into from
May 10, 2017
Merged

Conversation

kennyjwilli
Copy link
Contributor

spec-tools v0.1.0 places a hard dependency on ClojureScript. Trying to load spec-tools.core in an all Clojure project results in this error:

java.io.FileNotFoundException: Could not locate cljs/analyzer/api__init.class or cljs/analyzer/api.clj on classpath.

The ClojureScript analyzer is required in impl.cljc. Does ClojureScript need to be a hard dependency? If not, here is a PR removing the require for the CLJS analyzer in Clojure code.

@kennyjwilli
Copy link
Contributor Author

Hmm, I see I forgot to run the ClojureScript tests. Is there an alternate impl to get around the analyzer require?

@kennyjwilli
Copy link
Contributor Author

I provided a macro impl of resolve to get around the call to the analyzer in Clojure.

Copy link
Contributor

@miikka miikka left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems reasonable that spec-tools shouldn't depend on CLJS if you're not using it with CLJS. I just want to check that this works with advanced compilation in CLJS. If it does, let's merge this and I'll create a new release.

@@ -1,4 +1,4 @@
(defproject metosin/spec-tools "0.1.0"
(defproject metosin/spec-tools "0.1.1"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you remove this? I'd prefer to not have version bumps in PRs, and it should be to a -SNAPSHOT release first anyway.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.1%) to 96.229% when pulling b605458 on kennyjwilli:master into ec5a62d on metosin:master.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.02%) to 96.131% when pulling 0c3e688 on kennyjwilli:master into ec5a62d on metosin:master.

@miikka miikka merged commit 0c3e688 into metosin:master May 10, 2017
@miikka
Copy link
Contributor

miikka commented May 10, 2017

I fixed the version myself, merged it and made a release. Thanks for the contribution!

@kennyjwilli
Copy link
Contributor Author

No problem. Thanks for your work on this project!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants