air icon indicating copy to clipboard operation
air copied to clipboard

Please support absolute paths other than the root directory

Open chenyu1990 opened this issue 4 years ago • 1 comments

configs:

root = "/data/project"
# Optional! If `watch_dir` is empty, use `root`.
watch_dir = ""
tmp_dir = "tmp"

[build]
# Just plain old shell command. You could use `make` as well.
cmd = "go build -o ./cmd/server/server ./cmd/server"
# Binary file yields from `cmd`.
bin = "./cmd/server/server"
# Customize binary.
full_bin = "./cmd/server/server -c ./configs/config.toml -m ./configs/model.conf"

errors:

can't load package: package ./cmd/server: cannot find package "." in:
        /root/cmd/server

chenyu1990 avatar Dec 22 '19 08:12 chenyu1990

What's your project structure?

cosmtrek avatar Jan 04 '20 05:01 cosmtrek