Skip to content
This repository has been archived by the owner on Jun 6, 2022. It is now read-only.

Use go.mod to discover import path #106

Open
twaugh opened this issue Feb 7, 2019 · 0 comments
Open

Use go.mod to discover import path #106

twaugh opened this issue Feb 7, 2019 · 0 comments

Comments

@twaugh
Copy link
Collaborator

twaugh commented Feb 7, 2019

Each go.mod file in the tree defines a separately-versioned project. We should:

  • search recursively for go.mod files not in vendor directories or directories which themselves contain a go.mod file
  • if any are found, use this as the list of projects (instead of searching each subdirectory of the provided dir)
  • for each found go.mod, extract the module name from it to use as the import path
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant