Skip to content

Releases: opsgang/fetch

alpha-with-regx-tags

03 Sep 15:39
b5c696b
Compare
Choose a tag to compare

Built from regx-tags-reconcile branch (SHA 0161bc6)

# must use at least golang 1.11+ to build for MacOS Monterey or newer
docker run -it --name build_static_fetch --rm \
    -e FETCH_VERSION=v0.2.0 \
    -e GIT_URL=https://github.com/opsgang/fetch \
    -v /tmp/g3-bin:/usr/local/bin \
    -v $PWD:/go/src/github.com/opsgang/fetch \
    -w /go/src/github.com/opsgang/fetch \
        golang:1.12-alpine /bin/sh

# inside container
apk --no-cache --update add ca-certificates bash gcc musl-dev openssl git curl su-exec
bash
export GOPATH=/go GOBIN=/usr/local/go/bin
export LGOBIN=$GOBIN PATH=$PATH:$GOBIN
wget "https://github.com/Masterminds/glide/releases/download/v0.13.3/glide-v0.13.3-linux-amd64.zip"
unzip glide-v0.13.3-linux-amd64.zip
mv linux-amd64/glide /usr/local/bin/glide
rm -rf linux_amd64 glide-v0.13.3-linux-amd64.zip
glide install
. build.sh && setup_fetch

build_linux && mv /usr/local/go/bin/ghfetch /usr/local/bin/g3-linux
build_macos && mv /usr/local/go/bin/ghfetch /usr/local/bin/g3-darwin

# binaries under $GOBIN in container or in /tmp/g3-bin on container-host

static binary for amd64 linux

10 Nov 17:40
Compare
Choose a tag to compare

v0.1.1 static binary works on amd64 linux (including alpine)

Download it:

curl \
  -L -H 'Accept: application/octet-stream' \
   https://github.com/opsgang/fetch/releases/download/v0.1.1/fetch.tgz \
| tar -xzv -C /usr/local/bin # change /usr/local/bin to desired location for binary