ontio / ontology

Official Go implementation of the Ontology protocol. https://dev-docs.ont.io/#/
GNU Lesser General Public License v3.0
826 stars 289 forks source link

[ERROR] Export failed for github.com/ethereum/go-ethereum: #1004

Open ghost opened 5 years ago

ghost commented 5 years ago

What version of ontology are you using (ontology --version)?

the checked-out repo

What operating system are you using (such as macOS, Linux and Windows)?

Windows 10pro, native on PowerShell

What did you do?

Checkout repo, then

PS C:\Users\laz\go\src\github.com\ontio\ontology> glide install
[INFO]  Lock file (glide.lock) does not exist. Performing update.
[INFO]  Downloading dependencies. Please wait...
[INFO]  --> Fetching updates for golang.org/x/net
[...]
[INFO]  --> Exporting github.com/pmezard/go-difflib
[INFO]  --> Exporting github.com/stretchr/testify
[ERROR] Export failed for github.com/ethereum/go-ethereum: Error while exporting submodule sources: exit status 128
[ERROR] Unable to export dependencies to vendor directory: Error while exporting submodule sources: exit status 128
PS C:\Users\laz\go\src\github.com\ontio\ontology> go version
go version go1.12.6 windows/amd64
PS C:\Users\laz\go\src\github.com\ontio\ontology> glide --version
glide version v0.13.2
PS C:\Users\laz\go\src\github.com\ontio\ontology>

Workaround

use https://github.com/Masterminds/glide/releases/tag/v0.12.3

Related

This is most possibly a glide-on-Windows issue, see #1002

Honglei-Cong commented 5 years ago

set GOPATH to C:\Users\laz\go\ ?

ghost commented 5 years ago

Yes. Saw similar error in other products. Glide win trouble.

ghost commented 5 years ago

@Honglei-Cong , any workaround here? Note that this is a BLOCKER on the windows-platform.

Honglei-Cong commented 5 years ago

As workaround, try go get github.com/ethereum/go-ethereum , and remove it from glide?

ghost commented 5 years ago

Tried, same error.

ghost commented 5 years ago

it works with glide 0.12.3

ghost commented 5 years ago

follow-up problem: #1023