mirror of https://github.com/gogits/gogs.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Unknown
1b362cc420
|
12 years ago | |
---|---|---|
conf | 12 years ago | |
doc | 12 years ago | |
docs | 12 years ago | |
i18n | 12 years ago | |
repo/bundles | 12 years ago | |
utils | 12 years ago | |
.gitignore | 12 years ago | |
.travis.yml | 12 years ago | |
LICENSE | 12 years ago | |
README.md | 12 years ago | |
README_ZH.md | 12 years ago | |
build.go | 12 years ago | |
check.go | 12 years ago | |
gopm.go | 12 years ago | |
gopm_test.go | 12 years ago | |
install.go | 12 years ago | |
remove.go | 12 years ago | |
search.go | 12 years ago |
README.md
gopm - Go Package Manager
gopm(Go Package Manager) is a Go package manage tool for search, install, update, share and backup packages in Go.
(Travis CI hasn't support Go 1.1 yet)
This application still in experiment, any change could happen, but it doesn't affect download and install packages.
Main features
- Download packages from popular project hosting with/without version control tools.
- Remove packages from local file system.
- Check package dependencies and download missing ones.
- More specific examples, see Quick Start.
Main commands
build
compiles and installs packages and dependencies: basically, it callsgo install
and moves executable to current path fromGOPATH
if any, the executable name is the folder name which is default bygo install
.search
searchs packages in Go Walker database by keyword.install
downloads and installs packages and dependencies: you can download packages without version control tools like git, hg, svn, etc. It downloads and installs all packages including all dependencies automatically(except when you use bundle or snapshot). For now, this command supportscode.google.com
,github.com
,launchpad.net
,bitbucket.org
.remove
removes packages and dependencies: it removes all packages including all dependencies(except when you use bundle or snapshot).check
checks dependencies of packages, and install all missing as a choose.
Known issues
- When you use commands like
gopm install bitbucket.org/zombiezen/gopdf
where is project root path but the directory doesn't contain any source files, you will get error in the installation step, you have to usegopm install bitbucket.org/zombiezen/gopdf/pdf
in order to go through all steps correctly. - Cannot remove
.git
with erroraccess is denied
.
Todo
v0.3.*
- Command
install
andremove
give number to let user choose operate one package. - Command
search
add flags-n
and-o
for number of list items and offset. - Command
check
add feature to update or generate gopack.json. - Command
install
generates dependencies configuration file. - Command
install
save tarball add support for packages in code.google.com, bitbucket.org, launchpad.net, git.oschina.net, gitcafe.com, *.codeplex.com. - Command
build
use dependencies configuration file to build with specific versions of dependencies, if VCS tools are available, simply usecheckout
. - Command
clean
is for cleaning empty directories and backup. - Add gpm working principle design.
- Complete documentation.
Future
- Command
remove
add flag-d
for removing dependencies at the same time. - Command
remove
add feature check for dependencies, make sure other packages don't import this one, and give choose for users. - Command
update
is for checking updates. - Command
sync
is for sync packages in two computers, support client and server mode through ssh. - Command
init
is for auto-configuring Go develop environment. - Command
install
andremove
andupdate
backup data(up to 50 records) before executing. - Command
rollback
is for rolling back to certain operation. - Add feature "struct generator".
- Command
install
add flag-all
for re-installing everything in GOPATH, usually use this after upgraded Go version. - Command
daemon
is for auto-compile web applications when debug it locally. - Collect download and installation results and report to users in the end.
- Add user system to create, edit, upload, and download bundles or snapshots through gpm client program.
- Develop user source API server template application to support user sources in bundles.
- Add support for downloading tarballs from user sources.
- After downloaded all packages in bundles or snapshots, need to check if all dependencies have been downloaded as well.
- Download package from code.google.com only support hg as version control system, probably support git and svn.
- Command
install
add support for downloading code from git.oschina.net, gitcafe.com, *.codeplex.com. - Command
install
add support for downloading by tag and branch for packages in git.oschina.net, gitcafe.com. - Command
install
andremove
add bundle parse code for getting data from server. - Command
install
andremove
add snapshot parse code for downloading or removing snapshot. - Add built-in application version in order to backup data when users update.
Credits
- Source files that contain code that is from gopkgdoc is honored in specific.
- Idea that support packages build revision is inspired by gopack.