Skip to content
Io code package manager based on Git repositories
Find file
Failed to load latest commit information.
.gitignore initial commit more refactoring and fixes to refactored
README more refactoring and fixes to more refactoring and fixes to more refactoring and fixes to simple verification library and package load example


iopackage - Io code package manager based on Git repositories.


  Amanda := Package select("git://", "8ebe4510990cdc010e9") load  # guess "" or ""
  Amanda := Package select("git://", "8ebe4510990cdc010e9") load("")
Design notes.

1. Each program is a package.
2. Each package requires other packages specifying strict version.
3. Each package is loaded into local context. Therefore, multiple 
   different versions of the same package could be loaded in the same state.  

Real world example:

1. App requires A5, B5, C5.
2. A5 requires B3, C5 requires A3.
3. A5, B5 and C5 are the first-level libraries (App is a zero-level library).
   Each of them could be hacked/forked: App may specify development versions like A5.1 or B5.2.
4. Package system should allow use of different medias and repositories:
   tarballs, git, mercurial, bazaar, subversion, name-your-repository. 
   Thus, multiple versions could be defined.
     Package Git := Package Source clone do(
       # returns a path on local filesystem to the package root folder
       prepare := method(version, urls,
     p := Package clone
     p addSource(Package Git clone setVersion("fb127e87fa78bc3761") appendURL("...soft.git"))
     p addSource(Package Hg clone setVersion("fb127e87fa78bc3761") appendURL("...soft.hg"))
     p addSource(Package Tarball clone setVersion("fb127e87fa78bc3761") appendURL("...soft.tar.gz"))
     p setup
     MySoft := p load("")
     # Shorter (sets version for all URLs):
     MySoft := Package withURLs("git://", "file://...", "") setVersion("1.0") load("")
Something went wrong with that request. Please try again.