We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 725bbff commit 9ed7855Copy full SHA for 9ed7855
1 file changed
internal/config/config.go
@@ -24,9 +24,8 @@ const fileHeader = `# 此文件由 gobuild<https://github.com/caixw/gobuild> 生
24
`
25
26
func initOptions(wd, base, configFilename string) error {
27
- dir := path.Join(binBaseDir, base)
28
o := &watch.Options{
29
- MainFiles: path.Join("./", dir),
+ MainFiles: "./" + path.Join(binBaseDir, base), // path.Join 会将 ./ 去除,所以 ./ 不能在 path.Join 中。
30
Excludes: []string{configFilename},
31
Exts: []string{".go", ".yaml", ".xml", ".yml", ".json"}, // 配置文件修改也重启
32
WatcherFrequency: watch.MinWatcherFrequency,
0 commit comments