blob: d5633794688a83e18442bbbabedd5b618f60e5b5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
From https://github.com/micro-editor/micro/commit/6a62575bcfdf4965f187eedafceb3400316e612b Mon Sep 17 00:00:00 2001
From: Emi <reedy.sailors.8t@icloud.com>
Date: Sun, 21 Jun 2026 07:59:26 +0200
Subject: [PATCH] Remove the need for Git
Signed-off-by: Emi <reedy.sailors.8t@icloud.com>
--- a/Makefile
+++ b/Makefile
@@ -2,11 +2,10 @@
VERSION = $(shell GOOS=$(shell go env GOHOSTOS) GOARCH=$(shell go env GOHOSTARCH) \
go run tools/build-version.go)
-HASH = $(shell git rev-parse --short HEAD)
DATE = $(shell GOOS=$(shell go env GOHOSTOS) GOARCH=$(shell go env GOHOSTARCH) \
go run tools/build-date.go)
GOBIN ?= $(shell go env GOPATH)/bin
-GOVARS = -X github.com/zyedidia/micro/v2/internal/util.Version=$(VERSION) -X github.com/zyedidia/micro/v2/internal/util.CommitHash=$(HASH) -X 'github.com/zyedidia/micro/v2/internal/util.CompileDate=$(DATE)'
+GOVARS = -X github.com/zyedidia/micro/v2/internal/util.Version=$(VERSION) -X 'github.com/zyedidia/micro/v2/internal/util.CompileDate=$(DATE)'
DEBUGVAR = -X github.com/zyedidia/micro/v2/internal/util.Debug=ON
VSCODE_TESTS_BASE_URL = 'https://raw.githubusercontent.com/microsoft/vscode/e6a45f4242ebddb7aa9a229f85555e8a3bd987e2/src/vs/editor/test/common/model/'
CGO_ENABLED := $(if $(CGO_ENABLED),$(CGO_ENABLED),0)
--
2.53.0
|