Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/essentialkaos/gopack

A simple tool for packing Go packages sources with all dependencies
https://github.com/essentialkaos/gopack

golang packer utility

Last synced: about 2 months ago
JSON representation

A simple tool for packing Go packages sources with all dependencies

Awesome Lists containing this project

README

        


GitHub Actions CI Status

Usage demoInstallationUsageBuild StatusLicense


`gopack` is a simple tool for packing Go package sources. This utility downloads package sources with all dependencies (through `glide`, `dep`, `go mod` or `go get`) and packs them into an archive.

`gopack-build` is a simple tool for building binaries from sources archive.

### Usage demo

#### `gopack`

[![demo](https://gh.kaos.st/gopack-1132.gif)](#usage-demo)

#### `gopack-build`

[![demo](https://gh.kaos.st/gopack-build-126.gif)](#usage-demo)

### Installation

#### From ESSENTIAL KAOS Public repository

```bash
sudo yum install -y https://yum.kaos.st/kaos-repo-latest.el$(grep 'CPE_NAME' /etc/os-release | tr -d '"' | cut -d':' -f5).noarch.rpm
sudo yum install gopack gopack-build
```

#### From GitHub repository

```bash
curl -o gopack https://kaos.sh/gopack/SOURCES/gopack
curl -o gopack-build https://kaos.sh/gopack/SOURCES/gopack-build
chmod +x gopack gopack-build
sudo mv gopack gopack-build /usr/bin/
```

Also, you can use the latest version of utilities without installation:

```bash
bash <(curl -fsSL https://kaos.sh/gopack/SOURCES/gopack) # pass options here
bash <(curl -fsSL https://kaos.sh/gopack/SOURCES/gopack-build) # pass options here
```

#### Using Makefile and Git

```bash
git clone https://kaos.sh/gopack.git
cd gopack
sudo make install
```

### Usage

#### `gopack`

#### `gopack-build`

### Build Status

| Branch | Status |
|--------|--------|
| `master` | [![CI](https://kaos.sh/w/gopack/ci.svg?branch=master)](https://kaos.sh/w/gopack/ci?query=branch:master) |
| `develop` | [![CI](https://kaos.sh/w/gopack/ci.svg?branch=develop)](https://kaos.sh/w/gopack/ci?query=branch:develop) |

### License

[Apache License, Version 2.0](https://www.apache.org/licenses/LICENSE-2.0)