Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-shell
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
0
Merge Requests
0
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-shell
Commits
26351d38
Commit
26351d38
authored
Sep 02, 2019
by
Victor Zagorodny
Committed by
Douwe Maan
Sep 02, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Refactor "go build" path constants
parent
754e11b7
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
4 deletions
+7
-4
bin/compile
bin/compile
+6
-3
support/go_build.rb
support/go_build.rb
+1
-1
No files found.
bin/compile
View file @
26351d38
...
...
@@ -5,13 +5,16 @@ require 'fileutils'
require_relative
'../support/go_build'
include
GoBuild
BUILD_BIN_GLOB
=
File
.
join
(
BUILD_DIR
,
'bin'
,
'*'
)
ROOT_BIN
=
File
.
join
(
ROOT_PATH
,
'bin'
)
def
main
ensure_build_dir_exists
run!
(
GO_ENV
,
%W[go install ./cmd/...]
,
chdir:
File
.
join
(
ROOT_PATH
,
GO_DIR
)
)
executables
=
Dir
[
File
.
join
(
BUILD_DIR
,
'bin'
,
'*'
)
]
run!
(
GO_ENV
,
%W[go install ./cmd/...]
,
chdir:
GO_DIR
)
executables
=
Dir
[
BUILD_BIN_GLOB
]
FileUtils
.
chmod
(
0755
,
executables
)
FileUtils
.
cp
(
executables
,
File
.
join
(
ROOT_PATH
,
'bin'
)
)
FileUtils
.
cp
(
executables
,
ROOT_BIN
)
end
main
support/go_build.rb
View file @
26351d38
...
...
@@ -6,7 +6,7 @@ require 'fileutils'
require_relative
'../lib/gitlab_init'
module
GoBuild
GO_DIR
=
'go'
.
freeze
GO_DIR
=
File
.
join
(
ROOT_PATH
,
'go'
)
BUILD_DIR
=
File
.
join
(
ROOT_PATH
,
'go_build'
)
GO_ENV
=
{
...
...
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