Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

compilation issue Fabric SDK Go at the Test Step #13

Closed
M-AMAIRI opened this issue Jun 1, 2018 · 4 comments
Closed

compilation issue Fabric SDK Go at the Test Step #13

M-AMAIRI opened this issue Jun 1, 2018 · 4 comments

Comments

@M-AMAIRI
Copy link

M-AMAIRI commented Jun 1, 2018

Hi ,

I followed the tutorial, and I installed Version Go 1.10, but I have some problem of compilation, in my opinion because of a missing library , despite I have succeeded in all precedent steps .
here is the echo when launching build

cd $GOPATH/src/github.com/chainHero/heroes-service && go build
main.go:6:2: cannot find package "github.com/chainHero/heroes-service/web" in any of:
	/home/m-amairi/go/src/github.com/chainHero/heroes-service/vendor/github.com/chainHero/heroes-service/web (vendor tree)
	/usr/local/go/src/github.com/chainHero/heroes-service/web (from $GOROOT)
	/home/m-amairi/go/src/github.com/chainHero/heroes-service/web (from $GOPATH)
main.go:7:2: cannot find package "github.com/chainHero/heroes-service/web/controllers" in any of:
	/home/m-amairi/go/src/github.com/chainHero/heroes-service/vendor/github.com/chainHero/heroes-service/web/controllers (vendor tree)
	/usr/local/go/src/github.com/chainHero/heroes-service/web/controllers (from $GOROOT)
	/home/m-amairi/go/src/github.com/chainHero/heroes-service/web/controllers (from $GOPATH)

can someone help me please ,
thanks ,
Moatez

@sshmaxime
Copy link
Contributor

sshmaxime commented Jun 4, 2018

Hi @M-AMAIRI !

It's not a problem of dependencies but a problem with your files. The error is saying that you don't have the web files in your directory.

Can you tell me where did this issue came ? At which point of the tutorial ?

@antitoine
Copy link
Contributor

@M-AMAIRI ,
You must have copied the Gopkg.lock file in addition to the Gopkg.toml. Remove the Gopkg.lock file, run the dependency manager and compile again:

cd $GOPATH/src/github.com/chainHero/heroes-service
rm -f Gopkg.lock
dep ensure
go build

@antitoine antitoine reopened this Jun 4, 2018
@antitoine
Copy link
Contributor

I close this issue as there was no update.

@M-AMAIRI
Copy link
Author

Hi @antitoine , thank you for help , Sorry for the Late Reply I have been sick since last week , I followed the steps that you mentioned, and currently it works for me , and as @MaximeAubanel said , this type of errors can be also by the lack of web/controllers files .

Thanks ,
Moatez ,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants