https://github.com/cloudsmith-io/gopack
Pack Go modules into zip files for distribution
https://github.com/cloudsmith-io/gopack
Last synced: 4 months ago
JSON representation
Pack Go modules into zip files for distribution
- Host: GitHub
- URL: https://github.com/cloudsmith-io/gopack
- Owner: cloudsmith-io
- License: apache-2.0
- Created: 2019-09-03T12:39:58.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2023-02-07T12:15:50.000Z (over 3 years ago)
- Last Synced: 2024-06-20T08:05:34.182Z (almost 2 years ago)
- Language: Go
- Size: 20.5 KB
- Stars: 2
- Watchers: 11
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# gopack
[](https://github.com/cloudsmith-io/gopack/releases/latest)
`gopack` is a small utility designed to pack a local Go module into a Zip file which can then be distributed using a private Go module registry (like Cloudsmith).
## Install
Download the appropriate version for your platform from [`gopack` Releases](https://github.com/cloudsmith-io/gopack/releases). Once downloaded, the binary can be run from anywhere. You don’t need to install it into a global location. This works well for shared hosts and other systems where you don’t have a privileged account.
Ideally, you should install it somewhere in your `PATH` for easy use. `/usr/local/bin` is the most probable location.
## Usage
`gopack` has a single required argument, the version number. Assuming you have a module checked out in the current directory, you can run `gopack` as follows:
```bash
$ gopack v1.0.1
```
If all goes well you should then see the file `v1.0.1.zip` in the current directory. If your module lives in a different directory, you can pass that as the second argument:
```bash
$ gopack v1.2.3 ../module/lives/here/
```