-
Notifications
You must be signed in to change notification settings - Fork 1k
Support importing glide config during dep init #380
Comments
I've updated the issue with my first stab at how this command should behave but have a few questions though that will need clarification. |
AAAAAAAAAAWESOME QUESTIONS 🎉 🎉
👍
Yes, but also, the inverse case - constraints given in
If you can do this without touching #149 yet, then great 😄
So, this is actually a problem point. glide doesn't differentiate between constraint types in its manifest, which makes input untyped and ambiguous. Case in point - Masterminds/semver has a branch named There was a kerfuffle over this: Masterminds/glide#391 This is actually the same problem we currently have with constraints passed to
A bit more work to do here, as well - we need to reach out and try to pair that revision with a tag or branch, if possible.
Depends on which part of the glide configuration. If it's the versions from the lock, that shouldn't be a problem - the solver will sort that out. If it's the versions from the manifest, though, that's trickier, and fairly involved. However, it's VERY unlikely to a be a situation encounters anytime soon, so I'm fine with making a specific issue for it and kicking it down the road.
Blow up 💣 💥 😅 |
Is there any scenario where |
I don't think so, as I believe glide's still relying on static analysis to determine what's actually needed (same as gps). I'd say it'd be fine to print a message for each ineffectual constraint the conversion encounters, though. |
I just curiosity about why only support importing from glide instead of other existing tools to dep? |
@carolynvs Thanks for reply. |
Folks are welcome to jump in on the implementations for others at any time 😄 As I mention in #186, there's mostly-working implementations for several existing pkg mgrs out there already (I wrote them when converting glide to gps last fall) |
@sdboyer Do you have a preference on whether or not the importers are defined in sub-package, e.g. |
@carolynvs i don't really have a strong preference. i do think they should be unexported, at least for now. In general, I think we need to start leaning more towards not exporting things we don't have to - or putting them in an |
Fixed by #500 |
So I can't init... @carolynvs
|
@marcellodesales Would you please open a new issue? That will make it easier to track down what's going on. |
dep init
checks for existing Glide configuration files (glide.yaml
/glide.lock
) and uses them to populate the manifest and lock.-skip-tools
to skip importing existing dependency management config from other tools.This is part of the epic #186.
Behaviors
glide.yaml
at the root of the project. ❓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.version
/branch
is specified inglide.yaml
, use that value in the manifest.repo
is specified inglide.yaml
, use that value as thesource
in the manifest.glide.yaml
, ignore them since dep will generate that list using static analysis. ❓ignore
list is specified inglide.yaml
, use those values in the manifest.testImports
are included in the manifest as regular[[dependencies]]
, i.e. no distinction is made between imports and test imports. ❓excludeDirs
,import.os
orimport.arch
is specified inglide.yaml
, warn that it isn't supported. ❓homepage
,license
orowners
is specified inglide.yaml
.glide.lock
.The text was updated successfully, but these errors were encountered: