File: build.sh

package info (click to toggle)
golang-github-etcd-io-gofail 0.1.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 316 kB
  • sloc: makefile: 24; sh: 3
file content (7 lines) | stat: -rwxr-xr-x 249 bytes parent folder | download
1
2
3
4
5
6
7
#!/usr/bin/env bash

GIT_SHA=$(git rev-parse --short HEAD || echo "GitNotFound")

# Set GO_LDFLAGS="-s" for building without symbols for debugging.
GO_LDFLAGS=("-X 'main.GitSHA=${GIT_SHA}'")
go build $GO_BUILD_FLAGS -ldflags="$GO_LDFLAGS" -o gofail