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

each task-runner does not change the pwd #21

Closed
pieterbreed opened this issue Apr 20, 2017 · 2 comments
Closed

each task-runner does not change the pwd #21

pieterbreed opened this issue Apr 20, 2017 · 2 comments
Labels

Comments

@pieterbreed
Copy link

pieterbreed commented Apr 20, 2017

I added [io.sarnowski/lein-docker "1.0.0"] to the monorepo's project.clj file and now running lein monolith each :select :project docker build. They error out as all those tasks that were selected are running in the base/root/main directory and not the directory of the actual selected projects.

Each of the projects selected this way have Dockerfiles that work. If I cd to those projects by hand and run lein docker build those commands work.

You can see the same issue with adding [lein-shell "0.5.0"] as a plugin dependency and running lein monolith each :select :project pwd. What you see there is that pwd always returns the same folder in which the monorepo's project.clj is located, the root/base one.

The expected behaviour is for the sub-tasks to chdir to the actual folder of their selected project.clj files.

@greglook
Copy link
Collaborator

Hmm, you're right that this is expectation-breaking. I'll investigate to see if this is changeable.

@greglook
Copy link
Collaborator

Fixed in version 1.0.0

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

No branches or pull requests

2 participants