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

Read from raw project for inherit-raw and inherit-leaky-raw #75

Merged
merged 27 commits into from
Oct 2, 2020

Conversation

robhanlon22
Copy link
Contributor

@robhanlon22 robhanlon22 commented Sep 26, 2020

Resolves #68.

@robhanlon22 robhanlon22 force-pushed the inherit-raw branch 3 times, most recently from a640bf0 to 3703a7d Compare September 26, 2020 23:06
@robhanlon22 robhanlon22 force-pushed the inherit-raw branch 2 times, most recently from 0c099d4 to be8c790 Compare September 26, 2020 23:08
@robhanlon22
Copy link
Contributor Author

robhanlon22 commented Sep 27, 2020

It seems that with-all needs to be updated as well—needs to actually build and activate the inherited profiles before grabbing the paths.

EDIT: this is done

@robhanlon22 robhanlon22 force-pushed the inherit-raw branch 4 times, most recently from 8625c86 to bbd0c7b Compare September 27, 2020 05:30
@robhanlon22 robhanlon22 marked this pull request as ready for review September 27, 2020 06:22
@robhanlon22 robhanlon22 force-pushed the inherit-raw branch 12 times, most recently from 046e3d0 to 0268247 Compare September 27, 2020 18:24
@robhanlon22
Copy link
Contributor Author

@greglook this is ready to go!

Copy link
Collaborator

@greglook greglook left a comment

Choose a reason for hiding this comment

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

Overall this looks pretty good! A bunch of comments for you, covering a mix of style, idiom, and structuring, plus some questions about why you made certain changes.

.circleci/config.yml Show resolved Hide resolved
dev/lein_monolith/test_utils.clj Outdated Show resolved Hide resolved
dev/lein_monolith/test_utils.clj Outdated Show resolved Hide resolved
dev/lein_monolith/test_utils.clj Outdated Show resolved Hide resolved
example/apps/app-a/project.clj Outdated Show resolved Hide resolved
profile-config))


(def ^:private init-lock
Copy link
Collaborator

Choose a reason for hiding this comment

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

Hmm, I really don't think that the plugin code should be doing any subproject initialization. That should only be needed when running tasks in the subprojects, which should only be in the each task.

src/lein_monolith/plugin.clj Outdated Show resolved Hide resolved
src/leiningen/monolith.clj Show resolved Hide resolved
test/example-tests.sh Outdated Show resolved Hide resolved
test/leiningen/monolith_test.clj Outdated Show resolved Hide resolved
@robhanlon22
Copy link
Contributor Author

Thank you for the thoughtful review! I'll address these comments ASAP.

@robhanlon22
Copy link
Contributor Author

@greglook ready for 👀 again! One thing that might be addressed on a follow-up is that I couldn't get values from composite profiles to correctly merge into the all profile. This is, however, the current behavior, so it should be addressed. Example: the app-a/bench directory isn't in the all profile, even though it should be.

@robhanlon22
Copy link
Contributor Author

Also, would you like me to squash this?

@greglook
Copy link
Collaborator

greglook commented Oct 2, 2020

Thanks for the updates! I'll take another look.

Also, would you like me to squash this?

I'll squash when I merge.

@robhanlon22
Copy link
Contributor Author

@greglook ready for 👀 again! One thing that might be addressed on a follow-up is that I couldn't get values from composite profiles to correctly merge into the all profile. This is, however, the current behavior, so it should be addressed. Example: the app-a/bench directory isn't in the all profile, even though it should be.

I reverted some added behavior that attempted to activate all of the active profiles when building the child (re)source and test paths. It's back to its existing behavior, which is that paths under the profiles activated in the parent are not merged, e.g. if there are paths in the :dev profile in a child profile and :dev is active in the parent when running with-all, those paths are not merged.

@robhanlon22
Copy link
Contributor Author

robhanlon22 commented Oct 2, 2020

@greglook here's the follow-up work, as discussed: robhanlon22#1 I opened it as a PR against this branch in my fork; I'll re-apply the changes against master and open a PR against upstream once this PR lands.

Copy link
Collaborator

@greglook greglook left a comment

Choose a reason for hiding this comment

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

This looks good! One more minor comment and I'll merge this. Should be available later as part of a 1.6.0-SNAPSHOT release for testing.

src/lein_monolith/plugin.clj Show resolved Hide resolved
test/leiningen/monolith_test.clj Outdated Show resolved Hide resolved
@greglook greglook merged commit f320696 into amperity:master Oct 2, 2020
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.

Inheriting :test-paths and other paths
2 participants