vpkg is a package manager written on V for V.
vpkg's approach is to incorporate the ideas taken from centralized and decentralized package managers.
- Centralized, popular packages are being listed on VPM and on to a single
- Uses a single, JSON file for storing package information as well as it's dependencies. (In this case,
- Packages stored from
registry.jsonfile can be obtained through a simple
vpkg get [package name]while the rest uses regular Git URLs.
- Support for multiple package manifests (
- Support for custom package registries/sources.
Running your own registry
VPkg's own registry server is a perfect template to start running your own registry server. Just modify
registry.json and use any http or web library of your choice to get up and running.
VPkg 0.5 An alternative package manager for V. USAGE vpkg <COMMAND> [ARGS...] [options] COMMANDS get [packages] Fetch and installs packages from the registry or the git repo. help Prints this help message. info Show project's package information. init [--format=vpkg|vmod] Creates a package manifest file into the current directory. Defaults to "vpkg". install Reads the package manifest file and installs the necessary packages. migrate manifest [--format=vpkg|vmod] Migrate manifest file to a specified format. remove [packages] Removes packages update Updates packages. version Prints the Version of this program. OPTIONS --global, -g Installs the modules/packages into the `.vmodules` folder. --force Force download the packages
- ability to publish and search packages in VPM and VPKG registry.
- recursive installation of dependencies of packages.
- unified logging interface
- Clone the repo.
- Download and install v-args and place it into the folder where your vpkg source code is located.
- Build it from source.
Building from Source
git clone https://github.com/v-pkg/vpkg.git cd vpkg/ v -prod .
(C) 2019 Ned Palacios