Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
4d102128
Commit
4d102128
authored
Aug 18, 2021
by
kpcyrd
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Reproducible Builds: Use SOURCE_DATE_EPOCH for build time if present
parent
fb1fca68
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
workhorse/Makefile
workhorse/Makefile
+6
-1
No files found.
workhorse/Makefile
View file @
4d102128
...
...
@@ -9,7 +9,12 @@ VERSION_STRING := $(shell git describe)
ifeq
($(strip $(VERSION_STRING)),)
VERSION_STRING
:=
v
$(
shell
cat
VERSION
)
endif
BUILD_TIME
:=
$(
shell
date
-u
+%Y%m%d.%H%M%S
)
DATE_FMT
=
+%Y%m%d.%H%M%S
ifdef
SOURCE_DATE_EPOCH
BUILD_TIME
:=
$(
shell
date
-u
-d
"@
$(SOURCE_DATE_EPOCH)
"
"
$(DATE_FMT)
"
2>/dev/null
||
date
-u
-r
"
$(SOURCE_DATE_EPOCH)
"
"
$(DATE_FMT)
"
2>/dev/null
||
date
-u
"
$(DATE_FMT)
"
)
else
BUILD_TIME
:=
$(
shell
date
-u
"
$(DATE_FMT)
"
)
endif
GOBUILD
:=
go build
-ldflags
"-X main.Version=
$(VERSION_STRING)
-X main.BuildTime=
$(BUILD_TIME)
"
EXE_ALL
:=
gitlab-resize-image gitlab-zip-cat gitlab-zip-metadata gitlab-workhorse
INSTALL
:=
install
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment