chore: update guts to latest, using mutations to prevent diffs (#17588)

Guts changes: https://github.com/coder/guts/compare/v1.1.0...main
This commit is contained in:
Steven Masley
2025-04-28 12:19:41 -05:00
committed by GitHub
parent 37c5e7c440
commit b9177eff7f
4 changed files with 9 additions and 4 deletions
+1 -1
View File
@@ -96,7 +96,7 @@ require (
github.com/chromedp/chromedp v0.13.3
github.com/cli/safeexec v1.0.1
github.com/coder/flog v1.1.0
github.com/coder/guts v1.1.0
github.com/coder/guts v1.3.1-0.20250428170043-ad369017e95b
github.com/coder/pretty v0.0.0-20230908205945-e89ba86370e0
github.com/coder/quartz v0.1.2
github.com/coder/retry v1.5.1
+2 -2
View File
@@ -901,8 +901,8 @@ github.com/coder/go-httpstat v0.0.0-20230801153223-321c88088322 h1:m0lPZjlQ7vdVp
github.com/coder/go-httpstat v0.0.0-20230801153223-321c88088322/go.mod h1:rOLFDDVKVFiDqZFXoteXc97YXx7kFi9kYqR+2ETPkLQ=
github.com/coder/go-scim/pkg/v2 v2.0.0-20230221055123-1d63c1222136 h1:0RgB61LcNs24WOxc3PBvygSNTQurm0PYPujJjLLOzs0=
github.com/coder/go-scim/pkg/v2 v2.0.0-20230221055123-1d63c1222136/go.mod h1:VkD1P761nykiq75dz+4iFqIQIZka189tx1BQLOp0Skc=
github.com/coder/guts v1.1.0 h1:EACEds9o4nwFjynDWsw1mvls0Xg91e74vBrqwz8BcGY=
github.com/coder/guts v1.1.0/go.mod h1:31NO4z6MVTOD4WaCLqE/hUAHGgNok9sRbuMc/LZFopI=
github.com/coder/guts v1.3.1-0.20250428170043-ad369017e95b h1:tfLKcE2s6D7YpFk7MUUCDE0Xbbmac+k2GqO8KMjv/Ug=
github.com/coder/guts v1.3.1-0.20250428170043-ad369017e95b/go.mod h1:31NO4z6MVTOD4WaCLqE/hUAHGgNok9sRbuMc/LZFopI=
github.com/coder/pq v1.10.5-0.20240813183442-0c420cb5a048 h1:3jzYUlGH7ZELIH4XggXhnTnP05FCYiAFeQpoN+gNR5I=
github.com/coder/pq v1.10.5-0.20240813183442-0c420cb5a048/go.mod h1:AlVN5x4E4T544tWzH6hKfbfQvm3HdbOxrmggDNAPY9o=
github.com/coder/pretty v0.0.0-20230908205945-e89ba86370e0 h1:3A0ES21Ke+FxEM8CXx9n47SZOKOpgSE1bbJzlE4qPVs=
+5
View File
@@ -67,7 +67,12 @@ func main() {
func TsMutations(ts *guts.Typescript) {
ts.ApplyMutations(
// TODO: Remove 'NotNullMaps'. This is hiding potential bugs
// of referencing maps that are actually null.
config.NotNullMaps,
FixSerpentStruct,
// Prefer enums as types
config.EnumAsTypes,
// Enum list generator
config.EnumLists,
// Export all top level types
+1 -1
View File
@@ -443,7 +443,7 @@ export interface CreateWorkspaceBuildRequest {
readonly template_version_id?: string;
readonly transition: WorkspaceTransition;
readonly dry_run?: boolean;
readonly state?: readonly string[];
readonly state?: string;
readonly orphan?: boolean;
readonly rich_parameter_values?: readonly WorkspaceBuildParameter[];
readonly log_level?: ProvisionerLogLevel;