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

make build with undefined migrations.AssetDir error #168

Closed
VahrushevSA opened this Issue Apr 30, 2017 · 4 comments

Comments

Projects
None yet
4 participants
@VahrushevSA
Copy link

VahrushevSA commented Apr 30, 2017

Compiling source for linux amd64

command-line-arguments

cmd/loraserver/main.go:114: undefined: migrations.AssetDir
Makefile: 8: failed to complete the recipe for the "build" target
Make: *** [build] Error 2

how to fix this? thanks

@utopiaprince

This comment has been minimized.

Copy link

utopiaprince commented May 3, 2017

please do this first:

make statics

then you will get internal/migrations/migrations_gen.go file.
after that, try:

make build
@dreamerzjy

This comment has been minimized.

Copy link

dreamerzjy commented May 4, 2017

there is no AssetDir in file"migrations_gen.go"

root@loraserver:~/loraserver/bin# go-bindata -version
go-bindata 3.1.0 (Go runtime go1.2).
Copyright (c) 2010-2013, Jim Teeuwen

root@loraserver:~/loraserver/bin# go-bindata-assetfs -version
go-bindata 3.1.0 (Go runtime go1.2).
Copyright (c) 2010-2013, Jim Teeuwen.
Cannot read bindata.go open bindata.go: no such file or directory

@brocaar

This comment has been minimized.

Copy link
Owner

brocaar commented May 4, 2017

Are you using the latest version from the master branch?

Could you try with the provided docker-compose environment? The Dockerfile will install all the required dependencies to test and compile.

To start a shell docker-compose run --rm loraserver bash

Then inside that shell try again make build.

@dreamerzjy

This comment has been minimized.

Copy link

dreamerzjy commented May 4, 2017

sorry,i found the reason is i installed "go-bindata:"by use"apt-get install go-bindata";
after i use "apt-get autoremove go-bindata",problem is fixed.

@brocaar brocaar closed this May 4, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment