-
Notifications
You must be signed in to change notification settings - Fork 0
Home
Kyle Harrison edited this page Jul 31, 2016
·
3 revisions
Welcome to the cget wiki!
- One creates a new project, or opens an existing project
- Someone wants to install a dependency like LUA
- In a command shell, one types:
cget install lua/lua
- cget binary contacts the registry to look for a registered package called "lua/lua"
- Because no version constraint is specified, it looks to get the highest registered semver number 6a. If the package and version resolves, and the package is referred to a zipped package, download that 6b. If the package and version resolves, it looks to the registered endpoint git scm repository, be it github/bitbucket/etc as long as an anonymous clone is allowed, any repository is allowed as long as the package json specifies the endpoint.
- The dependency is download/cloned, and resolved to a dependency "library" directory, or directory path specified in the json format
- If a post-script is specified in the downloaded packages json file, execute it
- repeat steps 6-8 for any dependencies specified in the packages json file, recursively
At the end of execution, a lua dev dependency will be available in a library directory, complimented by any specified requirements stated by the lua package.