mirror of
https://github.com/caddyserver/xcaddy.git
synced 2025-01-22 08:36:28 +01:00
Always prepend caddy command with dot (#117)
Fix xcaddy run on windows with go 1.19 See https://github.com/golang/go/issues/43724
This commit is contained in:
parent
0bd3c1dfd5
commit
25c412f1ec
1 changed files with 3 additions and 2 deletions
|
@ -164,10 +164,11 @@ func runBuild(ctx context.Context, args []string) error {
|
|||
}
|
||||
|
||||
func getCaddyOutputFile() string {
|
||||
f := "." + string(filepath.Separator) + "caddy"
|
||||
if runtime.GOOS == "windows" {
|
||||
return "caddy.exe"
|
||||
f += ".exe"
|
||||
}
|
||||
return "." + string(filepath.Separator) + "caddy"
|
||||
return f
|
||||
}
|
||||
|
||||
func runDev(ctx context.Context, args []string) error {
|
||||
|
|
Loading…
Reference in a new issue