mirror of
https://github.com/caddyserver/xcaddy.git
synced 2025-03-23 21:54:53 +01:00
Remove deprecated -d flag in 'go get' (go 1.23)
This commit is contained in:
parent
cca523fb24
commit
ef4158623f
1 changed files with 2 additions and 2 deletions
|
@ -320,7 +320,7 @@ func (env environment) runCommand(ctx context.Context, cmd *exec.Cmd) error {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// execGoGet runs "go get -d -v" with the given module/version as an argument.
|
// execGoGet runs "go get -v" with the given module/version as an argument.
|
||||||
// Also allows passing in a second module/version pair, meant to be the main
|
// Also allows passing in a second module/version pair, meant to be the main
|
||||||
// Caddy module/version we're building against; this will prevent the
|
// Caddy module/version we're building against; this will prevent the
|
||||||
// plugin module from causing the Caddy version to upgrade, if the plugin
|
// plugin module from causing the Caddy version to upgrade, if the plugin
|
||||||
|
@ -336,7 +336,7 @@ func (env environment) execGoGet(ctx context.Context, modulePath, moduleVersion,
|
||||||
caddy += "@" + caddyVersion
|
caddy += "@" + caddyVersion
|
||||||
}
|
}
|
||||||
|
|
||||||
cmd := env.newGoBuildCommand(ctx, "get", "-d", "-v")
|
cmd := env.newGoBuildCommand(ctx, "get", "-v")
|
||||||
// using an empty string as an additional argument to "go get"
|
// using an empty string as an additional argument to "go get"
|
||||||
// breaks the command since it treats the empty string as a
|
// breaks the command since it treats the empty string as a
|
||||||
// distinct argument, so we're using an if statement to avoid it.
|
// distinct argument, so we're using an if statement to avoid it.
|
||||||
|
|
Loading…
Add table
Reference in a new issue