From f8790b94826f4ae649434b5f5f2806d336bd4651 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C3=A9ter=20Szil=C3=A1gyi?= Date: Mon, 18 Nov 2019 22:06:28 +0200 Subject: [PATCH] mobile: fix CopyFile switch to package cp --- mobile/android_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mobile/android_test.go b/mobile/android_test.go index 3d3bd66d0..c85314c15 100644 --- a/mobile/android_test.go +++ b/mobile/android_test.go @@ -25,7 +25,7 @@ import ( "testing" "time" - "github.com/ethereum/go-ethereum/internal/build" + "github.com/cespare/cp" ) // androidTestClass is a Java class to do some lightweight tests against the Android @@ -212,7 +212,7 @@ func TestAndroid(t *testing.T) { t.Logf("%s", output) t.Fatalf("failed to run gomobile bind: %v", err) } - build.CopyFile(filepath.Join("libs", "geth.aar"), "geth.aar", os.ModePerm) + cp.CopyFile(filepath.Join("libs", "geth.aar"), "geth.aar") if err = ioutil.WriteFile(filepath.Join("src", "androidTest", "java", "org", "ethereum", "gethtest", "AndroidTest.java"), []byte(androidTestClass), os.ModePerm); err != nil { t.Fatalf("failed to write Android test class: %v", err)