Closed wisestmumbler closed 1 year ago
Hiya ! I feel this is another instalment of #5214 ? I don't believe there is any way around the problem at the moment. Hopefully this gets on Nrwl's radar in the short future.
Ahah! I found your issue.
First, I wouldn't recommend simply doing a git clone
in a gitignore'd
directory. Rather I would use git submodules. Which achieves something pretty similar. We'll return to this in a bit.
The reason why Nx can't find your project, is because it is gitignored. Therefore, nx also ignores it.
Now, if we go with git submodules.. instead of running git clone
in the workspace
directory, we can do this from the root instead:
workspace/*
line from .gitignore
.git submodule add https://github.com/ngageoint/opensphere workspace/opensphere
which will "clone" the repository into the workspace/opensphere directory. However, it will not commit all the files in the repository. Rather, git will track the history in a separate repo.nx graph
, your project is now there! :tada: I suggest you read up more here.
This issue has been closed for more than 30 days. If this issue is still occuring, please open a new issue with more recent context.
We love nx but one of our largest projects has a multirepo set up that we must maintain for some time.
Current Behavior
nx appears not to recognize the packages under our multirepo project
Expected Behavior
Based on my limited dive into the nx code, it seems like the git commands run would be ok in either a monorepo or a multirepo set up
Steps to Reproduce
Our workspaces are internal but found one on opensource that also reproduces the issue and adjusted it to make it more like our internal one: https://github.com/csgibson/nxtest The readme there has some steps to recreate the issue
Failure Logs
Environment
slack ref: https://nrwlcommunity.slack.com/archives/CMFKWPU6Q/p1663264619089729