Skip to content

Commit

Permalink
update the comment to reflex the actual value
Browse files Browse the repository at this point in the history
  • Loading branch information
WeidiDeng authored Dec 3, 2024
1 parent 839ff54 commit b60259e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ func (b Builder) Build(ctx context.Context, outputFile string) error {
// output looks like: github.com/caddyserver/caddy/v2 v2.7.6
version := strings.TrimPrefix(buffer.String(), buildEnv.caddyModulePath)
// if caddy replacement is a local directory, version will be
// like github.com/caddyserver/caddy/v2 v2.8.4 => c:\Users\test\caddy
// like v2.8.4 => c:\Users\test\caddy
// see https://github.com/caddyserver/xcaddy/issues/215
// strings.Cut return the string unchanged if separator is not found
version, _, _ = strings.Cut(version, "=>")
Expand Down

0 comments on commit b60259e

Please sign in to comment.