fresh icon indicating copy to clipboard operation
fresh copied to clipboard

How to provide concrete go file that should be builded without changing root directory?

Open PodsekinNapopravku opened this issue 4 years ago • 0 comments

Hello! As example i have project structure like this /project/cmd/main.go /project/internal/something.go /project/internal/...

When i run fresh-dlv from /project it causes an error in console "no Go files in /project". I have two ways

  1. run fresh-dlv from /project/cmd
  2. run fresh-dlv -c custom_config.conf (when custom_config.conf provides correct root directory "root /project/cmd")

In these two cases fresh doesn't rebuild when i make changes in nonroot directories, like /project/internal. I don't want to move main.go to /project.

PodsekinNapopravku avatar Oct 01 '21 09:10 PodsekinNapopravku