Skip to content

Multi-module workspaces #86

@lenovouser

Description

@lenovouser

I think currently multi-module workspaces do not seem to be supported, when I try to build caddy with one like this:

xcaddy --with example.net/testing/caddy-test/v1/core=/Users/silas/Workspace/testing/caddy-test

While my caddy-test project contains this go.work file:

go 1.18

use (
	./core // example.net/testing/caddy-test/v1/core
	./state // example.net/testing/caddy-test/v1/state
)

It fails with this:

2022/03/24 17:47:28 [INFO] Build environment ready
2022/03/24 17:47:28 [INFO] Building Caddy
2022/03/24 17:47:28 [INFO] exec (timeout=0s): /usr/local/bin/go mod tidy
go: finding module for package example.net/testing/caddy-test/v1/state/Users/silas/Workspace/testing/caddy-test
caddy imports
	example.net/testing/caddy-test/v1/state/Users/silas/Workspace/testing/caddy-test: module example.net/testing/caddy-test/v1/state@latest found (v0.0.0-00010101000000-000000000000, replaced by /Users/silas/Workspace/testing/caddy-test/state), but does not contain package example.net/testing/caddy-test/v1/state/Users/silas/Workspace/testing/caddy-test
2022/03/24 17:47:30 [INFO] Cleaning up temporary folder: /Users/silas/Workspace/testing/caddy-test/buildenv_2022-03-24-1747.4263064286
2022/03/24 17:47:30 [ERROR] exit status 1

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedExtra attention is needed

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions