Last active
July 18, 2018 20:23
-
-
Save technosophos/7c5139be3a068145a262 to your computer and use it in GitHub Desktop.
Glide init process
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @startuml glide-init-state.png | |
| start | |
| :glide init; | |
| :Scan source; | |
| :List deps; | |
| while (read list of deps) is (found dep) | |
| :Find dep; | |
| if (Found) then (yes) | |
| :Add to list; | |
| elseif (Missing dep) then (yes) | |
| :Fetch repo to vendor; | |
| :Add to list; | |
| elseif (In GOPATH only) then (yes) | |
| :Copy into venor; | |
| :Add to list; | |
| endif | |
| :Scan imports; | |
| :Add imports to deps; | |
| endwhile (no more deps) | |
| :Scan for package manager files; | |
| while (inspect packages) is (found package) | |
| if(Glide.yaml) then (yes) | |
| :Read SemVer version; | |
| :Resolve SemVer; | |
| :Set dep SemVer; | |
| elseif(GPM) then (yes) | |
| :Read Godeps versions; | |
| :Set dep version; | |
| elseif(gb) then (yes) | |
| :Read package JSON; | |
| :Set dep version; | |
| elseif(Gopdep) then (yes) | |
| :Read Godep JSON; | |
| :Set dep version; | |
| else (nothing) | |
| :Assume HEAD; | |
| endif | |
| endwhile (no more packages) | |
| :Set versions on filesystem; | |
| :Genterate YAML; | |
| :Generate lock; | |
| stop | |
| @ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
great! how does one generate a uml diagram from this file?