good morning!!!!
Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
B
bor
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Harbor Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
open
bor
Commits
1c1dc0e0
Commit
1c1dc0e0
authored
Mar 22, 2017
by
Péter Szilágyi
Committed by
GitHub
Mar 22, 2017
Browse files
Options
Downloads
Plain Diff
Merge pull request #3808 from fjl/build-go-1.7
build: require Go >= 1.7
parents
6742fc52
c6e6f1fe
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
.travis.yml
+0
-8
0 additions, 8 deletions
.travis.yml
README.md
+1
-1
1 addition, 1 deletion
README.md
build/ci.go
+4
-18
4 additions, 18 deletions
build/ci.go
build/env.sh
+1
-2
1 addition, 2 deletions
build/env.sh
with
6 additions
and
29 deletions
.travis.yml
+
0
−
8
View file @
1c1dc0e0
...
...
@@ -3,14 +3,6 @@ go_import_path: github.com/ethereum/go-ethereum
sudo
:
false
matrix
:
include
:
-
os
:
linux
dist
:
trusty
go
:
1.5.4
env
:
-
GO15VENDOREXPERIMENT=1
-
os
:
linux
dist
:
trusty
go
:
1.6.2
-
os
:
linux
dist
:
trusty
go
:
1.7.5
...
...
This diff is collapsed.
Click to expand it.
README.md
+
1
−
1
View file @
1c1dc0e0
...
...
@@ -16,7 +16,7 @@ For prerequisites and detailed build instructions please read the
[
Installation Instructions
](
https://github.com/ethereum/go-ethereum/wiki/Building-Ethereum
)
on the wiki.
Building geth requires both a Go and a C compiler.
Building geth requires both a Go
(version 1.7 or later)
and a C compiler.
You can install them using your favourite package manager.
Once the dependencies are installed, run
...
...
This diff is collapsed.
Click to expand it.
build/ci.go
+
4
−
18
View file @
1c1dc0e0
...
...
@@ -162,9 +162,9 @@ func doInstall(cmdline []string) {
// Check Go version. People regularly open issues about compilation
// failure with outdated Go. This should save them the trouble.
if
runtime
.
Version
()
<
"go1.
4
"
&&
!
strings
.
HasPrefix
(
runtime
.
Version
(),
"devel"
)
{
if
runtime
.
Version
()
<
"go1.
7
"
&&
!
strings
.
HasPrefix
(
runtime
.
Version
(),
"devel"
)
{
log
.
Println
(
"You have Go version"
,
runtime
.
Version
())
log
.
Println
(
"go-ethereum requires at least Go version 1.
4
and cannot"
)
log
.
Println
(
"go-ethereum requires at least Go version 1.
7
and cannot"
)
log
.
Println
(
"be compiled with an earlier version. Please upgrade your Go installation."
)
os
.
Exit
(
1
)
}
...
...
@@ -215,20 +215,9 @@ func doInstall(cmdline []string) {
}
func
buildFlags
(
env
build
.
Environment
)
(
flags
[]
string
)
{
if
os
.
Getenv
(
"GO_OPENCL"
)
!=
""
{
flags
=
append
(
flags
,
"-tags"
,
"opencl"
)
}
// Since Go 1.5, the separator char for link time assignments
// is '=' and using ' ' prints a warning. However, Go < 1.5 does
// not support using '='.
sep
:=
" "
if
runtime
.
Version
()
>
"go1.5"
||
strings
.
Contains
(
runtime
.
Version
(),
"devel"
)
{
sep
=
"="
}
// Set gitCommit constant via link-time assignment.
if
env
.
Commit
!=
""
{
flags
=
append
(
flags
,
"-ldflags"
,
"-X main.gitCommit"
+
sep
+
env
.
Commit
)
flags
=
append
(
flags
,
"-ldflags"
,
"-X main.gitCommit
=
"
+
env
.
Commit
)
}
return
flags
}
...
...
@@ -249,10 +238,7 @@ func goToolArch(arch string, subcmd string, args ...string) *exec.Cmd {
cmd
.
Args
=
append
(
cmd
.
Args
,
[]
string
{
"-ldflags"
,
"-extldflags -Wl,--allow-multiple-definition"
}
...
)
}
}
cmd
.
Env
=
[]
string
{
"GO15VENDOREXPERIMENT=1"
,
"GOPATH="
+
build
.
GOPATH
(),
}
cmd
.
Env
=
[]
string
{
"GOPATH="
+
build
.
GOPATH
()}
if
arch
==
""
||
arch
==
runtime
.
GOARCH
{
cmd
.
Env
=
append
(
cmd
.
Env
,
"GOBIN="
+
GOBIN
)
}
else
{
...
...
This diff is collapsed.
Click to expand it.
build/env.sh
+
1
−
2
View file @
1c1dc0e0
...
...
@@ -20,8 +20,7 @@ fi
# Set up the environment to use the workspace.
GOPATH
=
"
$workspace
"
GO15VENDOREXPERIMENT
=
1
export
GOPATH GO15VENDOREXPERIMENT
export
GOPATH
# Run the command inside the workspace.
cd
"
$ethdir
/go-ethereum"
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment