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 dynapath, accomodate enrich-classpath #140

Merged
merged 1 commit into from
Dec 14, 2021
Merged

Remove dynapath, accomodate enrich-classpath #140

merged 1 commit into from
Dec 14, 2021

Conversation

vemv
Copy link
Member

@vemv vemv commented Dec 13, 2021

Fixes #122
Fixes #120
Fixes #105
Fixes #103
Fixes #50

@vemv vemv requested a review from bbatsov December 13, 2021 07:31
[_]
nil)

(def ^:deprecated jdk-sources nil)
Copy link
Member Author

Choose a reason for hiding this comment

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

From what I pondered on previous iterations: ^:deprecated + no-op impls are the least breaking choice

(as opposed to an (assert false))

@@ -56,26 +50,26 @@
(.split (System/getProperty "java.class.path")
(System/getProperty "path.separator"))))

(defn classpath-urls [classloader]
Copy link
Member Author

Choose a reason for hiding this comment

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

This is (essentially) what dp/classpath-urls was doing


(defn compile-class-from-source
Copy link
Member Author

Choose a reason for hiding this comment

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

Now compilation for this test case happens via Lein :java-source-paths, it reflects typical end-user usage and also exercises what enrich-classpath does / is able to do (it's not able to modify classpaths at runtime, and we don't want that either!)

Copy link
Member

@bbatsov bbatsov left a comment

Choose a reason for hiding this comment

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

Looks good to me! Great work!

@bbatsov bbatsov merged commit 98c7263 into master Dec 14, 2021
@bbatsov bbatsov deleted the no-dynap branch December 14, 2021 06:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants