Skip to content

Commit

Permalink
wait until 1.23 is released
Browse files Browse the repository at this point in the history
  • Loading branch information
WeidiDeng committed Apr 29, 2024
1 parent 7feadb5 commit d3b1ba4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions cmd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ package xcaddycmd

import (
"bytes"
"cmp"
"context"
"encoding/json"
"fmt"
Expand Down Expand Up @@ -196,7 +195,7 @@ func runBuild(ctx context.Context, args []string) error {
func getCaddyOutputFile() string {
f := "." + string(filepath.Separator) + "caddy"
// compiling for Windows or compiling on windows without setting GOOS, use .exe extension
if cmp.Or(os.Getenv("GOOS"), runtime.GOOS) == "windows" {
if os.Getenv("GOOS") == "windows" || (os.Getenv("GOOS") == "" && runtime.GOOS == "windows") {
f += ".exe"
}
return f
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/caddyserver/xcaddy

go 1.22
go 1.14

require (
github.com/Masterminds/semver/v3 v3.2.1
Expand Down

0 comments on commit d3b1ba4

Please sign in to comment.