-
Notifications
You must be signed in to change notification settings - Fork 497
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
scan for projects if --project-dirs is defined #1093
Conversation
robstoll
commented
Nov 15, 2019
- introduce --project-dirs with glob patterns which allows to search for projects
- resolves Support nonstandard project layout. #46 and Support monorepos with scala subfolders #678
Codecov Report
@@ Coverage Diff @@
## master #1093 +/- ##
=========================================
- Coverage 68% 67.81% -0.2%
=========================================
Files 93 93
Lines 1466 1510 +44
Branches 43 40 -3
=========================================
+ Hits 997 1024 +27
- Misses 469 486 +17
Continue to review full report at Codecov.
|
0f20761
to
2824097
Compare
890e706
to
2b3c6cc
Compare
Hi @robstoll, many thanks for the PR. Can you provide an overview what this PR does and what the overall goal is? This PR touches a lot of code and it should be easier to review if the intention behind the changes are known. |
@fthomas the overall goal is to allow that one can use scala-steward in a project which
In this sense it should solve #46 and #678 IMO. The functionality is kind of documented in Cli and in WorkspaceAlgTest And I should mention that I was tempted to remove RepoCache.maybeSbtVersion/maybeScalafmtVersion they aren't used at all. In case you don't see a use case for it, it would probably make sense to remove them instead of introducing projectPathToSbtVersion and projectPathToSbtVersion |
cffec39
to
2f8e877
Compare
2f8e877
to
8472690
Compare
@fthomas any comments/suggestion for improvements on this one? |
Hi @robstoll But in my opinion a global setting is not very practical, unless you set it to # specify the root(s) of the projects. In this directory a "build.sbt" file is expected
# Default: './' (The root of the repository)
projects.roots = ['/app'] |
Would be fine with me as well but I am not changing things unless I get green lights for idea as such from a collaborator including feedback in case something else needs to be done. |
A previous PR suggests using |
Not changing the configuration of this repository makes a lot of sense IMO. So let's move to |
Hi, are there any updates on this? We're getting a lot of value out of scala-steward and would really like it for a few repos which have sbt projects in sub-directories. Is it a matter of getting the conflicts resolved? If so I can take a pass at it. Or is it a matter of more substantial changes which would take longer to resolve? |
@albertpastrana thomas or another contributor with merge rights needs to get active. See my last two posts. |
Thanks a lot for the info @robstoll!! |
I took a look at this PR and #1382 again now. A lot has changed since November last year - for example, we now support multiple build tools; sbt and scalafmt versions are not explicitly in Until now there is 1:1 relation between a I would start with adding a new data type for build roots (lets call it The entry point for interactions with build systems is
I think these are all necessary changes to support repos with the build in a subdirectory or multiple builds in different subdirectories. |
I don't have time to work on this right now, so if some else would like to take over (or start over again), go on. Maybe it makes sense that @bytecodeguru addresses the multiple files aspect in his PR as this one is at least rebased on master. I'll take a look in December again, if there was no action going on here or in #1382 then I'll might consider to do it myself. |
Superseded by #1875. |