Skip to content
This repository has been archived by the owner on Apr 12, 2021. It is now read-only.

Commit

Permalink
gitlab-workhorse: 6.1.0 -> 6.1.1, make build deterministic
Browse files Browse the repository at this point in the history
  • Loading branch information
Kristoffer Thømt Ravneberg committed Oct 8, 2018
1 parent 908a75a commit 998d4e4
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,18 @@
stdenv.mkDerivation rec {
name = "gitlab-workhorse-${version}";

version = "6.1.0";
version = "6.1.1";

srcs = fetchFromGitLab {
owner = "gitlab-org";
repo = "gitlab-workhorse";
rev = "v${version}";
sha256 = "0h0mqalia4ldb2icr2h6x75pnr5jb5y23pi4kv4ri3w3ddnl74bq";
sha256 = "1dwvk86bfsqgkp0mwz71yis3i7aypjf96r3hsjkgpd27hwbjgxbr";
};

buildInputs = [ git go ];

patches = [ ./remove-hardcoded-paths.patch ];
patches = [ ./remove-hardcoded-paths.patch ./deterministic-build.patch ];

makeFlags = [ "PREFIX=$(out)" "VERSION=${version}" ];

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
--- a/Makefile 2018-10-08 12:45:15.206269937 +0200
+++ b/Makefile 2018-10-08 12:45:24.435366307 +0200
@@ -6,7 +6,7 @@
BIN_BUILD_DIR := $(TARGET_DIR)/bin
PKG_BUILD_DIR := $(TARGET_DIR)/src/$(PKG)
COVERAGE_DIR := $(TARGET_DIR)/cover
-VERSION := $(shell git describe)-$(shell date -u +%Y%m%d.%H%M%S)
+VERSION := 6.1.1
GOBUILD := go build -ldflags "-X main.Version=$(VERSION)"
EXE_ALL := gitlab-zip-cat gitlab-zip-metadata gitlab-workhorse
INSTALL := install

0 comments on commit 998d4e4

Please sign in to comment.