Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
Geth-Modification
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
张蕾
Geth-Modification
Commits
ae674a36
Commit
ae674a36
authored
Jul 24, 2018
by
Hyung-Kyu Hqueue Choi
Committed by
Felix Lange
Jul 24, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Makefile: clean go build cache (#17079)
parent
894022a3
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
0 deletions
+11
-0
Makefile
Makefile
+1
-0
clean_go_build_cache.sh
build/clean_go_build_cache.sh
+10
-0
No files found.
Makefile
View file @
ae674a36
...
@@ -41,6 +41,7 @@ lint: ## Run linters.
...
@@ -41,6 +41,7 @@ lint: ## Run linters.
build/env.sh go run build/ci.go lint
build/env.sh go run build/ci.go lint
clean
:
clean
:
./build/clean_go_build_cache.sh
rm
-fr
build/_workspace/pkg/
$(GOBIN)
/
*
rm
-fr
build/_workspace/pkg/
$(GOBIN)
/
*
# The devtools target installs tools required for 'go generate'.
# The devtools target installs tools required for 'go generate'.
...
...
build/clean_go_build_cache.sh
0 → 100755
View file @
ae674a36
#!/bin/sh
function
version_gt
()
{
test
"
$(
printf
'%s\n'
"
$@
"
|
sort
-V
|
head
-n
1
)
"
!=
"
$1
"
;
}
golang_version
=
$(
go version |cut
-d
' '
-f3
|sed
's/go//'
)
# Clean go build cache when go version is greater than or equal to 1.10
if
!(
version_gt 1.10
$golang_version
)
;
then
go clean
-cache
fi
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