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

Include project root directory in file path when rm-ing #4

Merged
merged 3 commits into from
Jun 3, 2016

Conversation

sashton
Copy link
Contributor

@sashton sashton commented Apr 15, 2016

Fix for #3

[{:keys [checkout] :as project} & [pattern]]
(let [current-checkouts (fs/list-dir "checkouts")
[{:keys [checkout root] :as project} & [pattern]]
(let [current-checkouts (fs/list-dir (str root File/separator "checkouts"))
Copy link
Owner

Choose a reason for hiding this comment

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

This should probably be (fs/file root "checkouts")

@sashton
Copy link
Contributor Author

sashton commented Apr 21, 2016

Thanks for the feedback. I've updated the PR to use fs/file.

@@ -1,6 +1,7 @@
(ns leiningen.checkout.rm
(:require [fs.core :as fs]
[leiningen.checkout.utils :as utils]))
[leiningen.checkout.utils :as utils])
(:import (java.io File)))
Copy link
Owner

Choose a reason for hiding this comment

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

Is there a reason we're still importing File?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Whoops, I forgot I added that. Thanks for catching it. I'll get that removed!

@sashton
Copy link
Contributor Author

sashton commented May 23, 2016

Hi @timvisher, are there any other modifications you'd like me to make for this PR?

@timvisher
Copy link
Owner

@sashton Sorry just getting back from a vacation. I'll try to get to this sometime today. :)

@timvisher
Copy link
Owner

Finally figured out the issue that I was having and documented it here #6

I should be able to verify these today and get them merged. Thanks for your patience!

@timvisher timvisher merged commit c820ba6 into timvisher:master Jun 3, 2016
@timvisher
Copy link
Owner

Alright this all looks great. Unfortunately I'm going to have to relearn how to publish to clojars. I'll do that asap.

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.

2 participants