Skip to content
This repository was archived by the owner on Sep 9, 2020. It is now read-only.
This repository was archived by the owner on Sep 9, 2020. It is now read-only.

Missing support for "minimal module-awareness" #1962

Closed
@joshuarubin

Description

@joshuarubin

I know that modules are a touchy subject over here in dep land. I just wanted to bring up an issue that we are having while we wanted to support both dep and module dependency management.

Since Go 1.10.3 added "minimal module-awareness", we've started adding go.mod files in some of our libraries.

If a library has a major version 2, then it's module line in go.mod will be module github.com/foo/bar/v2 even if it is being fetched from github.com/foo/bar. Go, since 1.10.3, will build just fine when using imports like import bar "github.com/foo/bar/v2", but dep complains that the repo doesn't have a submodule v2.

As a result, we can't use dep at all if we depend on packages using go.mod.

I know we are bleeding edge here, but any help in reconciling this issue would be much appreciated.

Please note that this is an issue for the current production release of Go, and not limited to builds using the new module support in vgo or go1.11.beta2.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions