chirpstack-network-server icon indicating copy to clipboard operation
chirpstack-network-server copied to clipboard

make build with undefined migrations.AssetDir error

Open VahrushevSA opened this issue 9 years ago • 4 comments

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

VahrushevSA avatar Apr 30 '17 16:04 VahrushevSA

please do this first:

make statics

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

make build

utopiaprince avatar May 03 '17 03:05 utopiaprince

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

dreamerzjy avatar May 04 '17 08:05 dreamerzjy

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.

brocaar avatar May 04 '17 08:05 brocaar

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.

dreamerzjy avatar May 04 '17 08:05 dreamerzjy