-
-
Notifications
You must be signed in to change notification settings - Fork 121
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
Multi-module workspaces #86
Comments
Hmm, I have no idea how this is supposed to work. |
I got it to work with: xcaddy \
--with example.net/testing/caddy-test/v1/core=/Users/silas/Workspace/testing/caddy-test/core \
--with example.net/testing/caddy-test/v1/state=/Users/silas/Workspace/testing/caddy-test/state So this is a good work-around for now, in case anyone else runs into this. Only problem is that you need to add a line for each sub-module you add to the (theoretical) single workspace. One needs to keep that in mind, which most of the time doesn't happen, so it takes a few seconds until you read through the lines of the failure until you get it.
Ideally it should behave like the plugin project itself when used with Go directly. With Go directly, all the modules I import from other modules in the same multi-module workspace get resolved, everything just works. Even though nothing is actually published anywhere online, so it has no chance of resolving these from somewhere else. It just somehow realizes it is part of a multi-module workspace, and then searches for the related packages in said workspace. I am not sure why this doesn't already work, because it uses |
That is strange that it doesn't work. I don't have time to investigate this right now but I really appreciate you sharing a workaround in the meantime! |
I think currently multi-module workspaces do not seem to be supported, when I try to build caddy with one like this:
While my
caddy-test
project contains thisgo.work
file:It fails with this:
The text was updated successfully, but these errors were encountered: