Replies: 5 comments
-
|
This is an interesting use case, where There are some workarounds possible (move Out of curiosity, would you also want to |
Beta Was this translation helpful? Give feedback.
-
Yeh unfortunately not an option atm just due to the way our over arching build system is working and our desire to keep this folder somewhat isolated from the rest of the app
That would also be great! Currently having to run a task as I guess the whole restriction seems somewhat arbitrary unless there's a particular performance reason it's not done. |
Beta Was this translation helpful? Give feedback.
-
|
Some internal comments on this track the conversation here just about 1:1. 😅
We're all on the same page here about this being interesting and worth supporting, but it violates a few core assumptions about how we function in terms of cache creation and restoration (which are all predicated on the repository root). In terms of a short-term fix, the workaround is the only option that we can propose. We do believe that there's something valuable to figuring out how to enable incremental adoption that isn't top-down and, as we explore the problem, we will try to "discover" what that design should be. |
Beta Was this translation helpful? Give feedback.
-
|
Hey guys, any momentum on this? Another use case for this existing apps. We have a microfrontend-based app that started out with many isolated repos by design (11 in total). I'd like to keep that repo structure but would like to add some pipelining (orchestration) via turbo rather than building custom scripts. We don't want to merge all repos into one, or have developers create a root parent folder and move all their repos there. Would be nice to have another repo that would "act as root". I get that the ideal is to have a parent folder (root) and have all your apps/ and your packages/ inside. But an existing app won't have this. What is the limitation with forbidding repo to reach outside of the root? Thanks! |
Beta Was this translation helpful? Give feedback.
-
|
Hey guys, any plans to move this forward? I have a multilanguage project with C++, Kotlin, and JS monorepo parts. The proto files are located in the root of the project (parent root of the monorepo) and I can't move proto files to the monorepo, because the C++ and Kotlin code requires those files also. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Describe the feature you'd like to request
Currently integrating turbo into a repo that has its typescript monorepo in a subdirectory that is part of a much larger monolithic app.
example:
turbo is only being implemented in
/frontendbut some package builds rely on files external to the workspace root such as theopenapi.yamlspec which is consumed to generate typescript types and api typed hooks.Currently if I were to try targeting an external file in
inputsI get the following error:I see in the code that this is something that is explicitly checked for
turborepo/cli/internal/globby/globby.go
Lines 25 to 37 in 0d51a1b
So wondering what the limitation is there with including files external to the root.
Describe the solution you'd like
Essentially extending the current syntax to work with files outside the root workspace:
Describe alternatives you've considered
At the moment I am able to get around this by performing a pre step before running turbo that copies the required files into the workspace so that they can be cached and referenced properly. This is however not nearly as ergonomic and requires devs to be aware of these build steps declared outside the
turbo.jsonfile.Beta Was this translation helpful? Give feedback.
All reactions