Skip to content

Instantly share code, notes, and snippets.

@technosophos
Last active July 18, 2018 20:23
Show Gist options
  • Select an option

  • Save technosophos/7c5139be3a068145a262 to your computer and use it in GitHub Desktop.

Select an option

Save technosophos/7c5139be3a068145a262 to your computer and use it in GitHub Desktop.
Glide init process
@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
@
@dopatraman
Copy link

great! how does one generate a uml diagram from this file?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment