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.
Support importing glide config during dep init #380
Closed
Description
dep init
checks for existing Glide configuration files (glide.yaml
/glide.lock
) and uses them to populate the manifest and lock.- Specify
-skip-tools
to skip importing existing dependency management config from other tools.
This is part of the epic #186.
Behaviors
- We only look for
glide.yaml
at the root of the project. ❓ - If a project is discovered by
dep init
that was not configured inglide.yaml
, it is still included in the manifest. Note: Fixing manifest.json is empty after dep init #149 is out of scope for this issue. - When
version
/branch
is specified inglide.yaml
, use that value in the manifest. - When
repo
is specified inglide.yaml
, use that value as thesource
in the manifest. - When a list of subpackages are specified in the
glide.yaml
, ignore them since dep will generate that list using static analysis. ❓ - When an
ignore
list is specified inglide.yaml
, use those values in the manifest. - Packages in
testImports
are included in the manifest as regular[[dependencies]]
, i.e. no distinction is made between imports and test imports. ❓ - When
excludeDirs
,import.os
orimport.arch
is specified inglide.yaml
, warn that it isn't supported. ❓ - Ignore
homepage
,license
orowners
is specified inglide.yaml
. - Lock to the same revision that is specified in
glide.lock
. - When the revisions from the glide configuration do not meet the constraints, what should we do?
- Prompt the user to either create an override or use some revision suggested by dep?
- Create an override?
- Is there another option?
- When configuration files from multiple dependency managers is found (e.g. glide AND godep), what is the expected behavior. Not a problem for this PR, but it is helpful to know ahead of time.