Skip to content

Commit 25c412f

Browse files
authored
Always prepend caddy command with dot (#117)
Fix xcaddy run on windows with go 1.19 See golang/go#43724
1 parent 0bd3c1d commit 25c412f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

cmd/main.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -164,10 +164,11 @@ func runBuild(ctx context.Context, args []string) error {
164164
}
165165

166166
func getCaddyOutputFile() string {
167+
f := "." + string(filepath.Separator) + "caddy"
167168
if runtime.GOOS == "windows" {
168-
return "caddy.exe"
169+
f += ".exe"
169170
}
170-
return "." + string(filepath.Separator) + "caddy"
171+
return f
171172
}
172173

173174
func runDev(ctx context.Context, args []string) error {

0 commit comments

Comments
 (0)