File gitlab-workhorse-pie.patch of Package gitlab-ce
Index: gitlab-ce/workhorse/Makefile =================================================================== --- gitlab-ce.orig/workhorse/Makefile +++ gitlab-ce/workhorse/Makefile @@ -58,7 +58,7 @@ all: clean-build $(EXE_ALL) .PHONY: gitlab-resize-image gitlab-zip-cat gitlab-zip-metadata gitlab-workhorse gitlab-resize-image gitlab-zip-cat gitlab-zip-metadata gitlab-workhorse: $(call message,Building $@) - go build -ldflags "$(GO_BUILD_GENERIC_LDFLAGS) -B gobuildid" -tags "$(BUILD_TAGS)" -o $(BUILD_DIR)/$@ $(PKG)/cmd/$@ + go build -mod=vendor -buildmode=pie -ldflags "$(GO_BUILD_GENERIC_LDFLAGS) -B gobuildid" -tags "$(BUILD_TAGS)" -o $(BUILD_DIR)/$@ $(PKG)/cmd/$@ .PHONY: install install: $(EXE_ALL)