Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
dms3
go-dms3
Commits
8c9725d8
Commit
8c9725d8
authored
Mar 09, 2018
by
Jakub Sztandera
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Simplify GOPATH check
License: MIT Signed-off-by:
Jakub Sztandera
<
kubuxu@protonmail.ch
>
parent
ad182959
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
4 deletions
+3
-4
bin/check_go_path
bin/check_go_path
+0
-2
mk/golang.mk
mk/golang.mk
+3
-2
No files found.
bin/check_go_path
View file @
8c9725d8
...
...
@@ -7,8 +7,6 @@ if [ -z "$PWD" ]; then
exit
1
fi
[
-z
"
$GOPATH
"
]
&&
GOPATH
=
"
$HOME
/go"
while
[
${#}
-gt
1
]
;
do
if
[
"
$PWD
"
=
"
$2
"
]
;
then
exit
0
...
...
mk/golang.mk
View file @
8c9725d8
# golang utilities
GO_MIN_VERSION
=
1.9
# match Go's default GOPATH behaviour
GOPATH
?=
$(HOME)
/go
# pre-definitions
GOCC
?=
go
...
...
@@ -10,6 +8,9 @@ GOTAGS ?=
GOFLAGS
?=
GOTFLAGS
?=
# match Go's default GOPATH behaviour
export
GOPATH
?=
$(
shell
$(GOCC)
env
GOPATH
)
DEPS_GO
:=
TEST_GO
:=
TEST_GO_BUILD
:=
...
...
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