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
2d1a0e9b
Unverified
Commit
2d1a0e9b
authored
Feb 23, 2021
by
Péter Szilágyi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
accounts/abi/bind: fix up Go mod files for Go 1.16
parent
c5023e1d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
bind_test.go
accounts/abi/bind/bind_test.go
+6
-1
No files found.
accounts/abi/bind/bind_test.go
View file @
2d1a0e9b
...
...
@@ -1846,11 +1846,16 @@ func TestGolangBindings(t *testing.T) {
t
.
Fatalf
(
"failed to convert binding test to modules: %v
\n
%s"
,
err
,
out
)
}
pwd
,
_
:=
os
.
Getwd
()
replacer
:=
exec
.
Command
(
gocmd
,
"mod"
,
"edit"
,
"-replace"
,
"github.com/ethereum/go-ethereum="
+
filepath
.
Join
(
pwd
,
".."
,
".."
,
".."
))
// Repo root
replacer
:=
exec
.
Command
(
gocmd
,
"mod"
,
"edit"
,
"-
x"
,
"-require"
,
"github.com/ethereum/go-ethereum@v0.0.0"
,
"-
replace"
,
"github.com/ethereum/go-ethereum="
+
filepath
.
Join
(
pwd
,
".."
,
".."
,
".."
))
// Repo root
replacer
.
Dir
=
pkg
if
out
,
err
:=
replacer
.
CombinedOutput
();
err
!=
nil
{
t
.
Fatalf
(
"failed to replace binding test dependency to current source tree: %v
\n
%s"
,
err
,
out
)
}
tidier
:=
exec
.
Command
(
gocmd
,
"mod"
,
"tidy"
)
tidier
.
Dir
=
pkg
if
out
,
err
:=
tidier
.
CombinedOutput
();
err
!=
nil
{
t
.
Fatalf
(
"failed to tidy Go module file: %v
\n
%s"
,
err
,
out
)
}
// Test the entire package and report any failures
cmd
:=
exec
.
Command
(
gocmd
,
"test"
,
"-v"
,
"-count"
,
"1"
)
cmd
.
Dir
=
pkg
...
...
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