whyrusleeping / gx-go

gx subtool for golang
MIT License
80 stars 28 forks source link

Rewrite deps in BFS order #50

Open Stebalien opened 6 years ago

Stebalien commented 6 years ago

47 fixed the direct issue in #44 but didn't fix the recursive case. In general, we should probably be rewriting BFS order (and never overwriting). That is, process a packages direct dependencies first before falling back on transitive dependencies, recursively.

schomatis commented 5 years ago

Agreed, I'll take this one, it seems like an excellent test case to see if I could apply the DAG walker here.

schomatis commented 5 years ago

Oh, unless this losses relevance with the lockfile support in https://github.com/whyrusleeping/gx-go/pull/49.