Skip to content

Commit edd9628

Browse files
authored
fix(cli): correctly print deprecated warnings (coder#8771)
In the previous implementation, it was possible for default-set values to trigger the deprecation warning.
1 parent ff794e4 commit edd9628

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cli/server.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1148,7 +1148,7 @@ func PrintDeprecatedOptions() clibase.MiddlewareFunc {
11481148
continue
11491149
}
11501150

1151-
if opt.Value.String() == opt.Default {
1151+
if opt.ValueSource == clibase.ValueSourceNone || opt.ValueSource == clibase.ValueSourceDefault {
11521152
continue
11531153
}
11541154

0 commit comments

Comments
 (0)