Skip to content

Commit b9177ef

Browse files
authored
chore: update guts to latest, using mutations to prevent diffs (#17588)
Guts changes: coder/guts@v1.1.0...main
1 parent 37c5e7c commit b9177ef

File tree

4 files changed

+9
-4
lines changed

4 files changed

+9
-4
lines changed

go.mod

+1-1
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ require (
9696
github.com/chromedp/chromedp v0.13.3
9797
github.com/cli/safeexec v1.0.1
9898
github.com/coder/flog v1.1.0
99-
github.com/coder/guts v1.1.0
99+
github.com/coder/guts v1.3.1-0.20250428170043-ad369017e95b
100100
github.com/coder/pretty v0.0.0-20230908205945-e89ba86370e0
101101
github.com/coder/quartz v0.1.2
102102
github.com/coder/retry v1.5.1

go.sum

+2-2
Original file line numberDiff line numberDiff line change
@@ -901,8 +901,8 @@ github.com/coder/go-httpstat v0.0.0-20230801153223-321c88088322 h1:m0lPZjlQ7vdVp
901901
github.com/coder/go-httpstat v0.0.0-20230801153223-321c88088322/go.mod h1:rOLFDDVKVFiDqZFXoteXc97YXx7kFi9kYqR+2ETPkLQ=
902902
github.com/coder/go-scim/pkg/v2 v2.0.0-20230221055123-1d63c1222136 h1:0RgB61LcNs24WOxc3PBvygSNTQurm0PYPujJjLLOzs0=
903903
github.com/coder/go-scim/pkg/v2 v2.0.0-20230221055123-1d63c1222136/go.mod h1:VkD1P761nykiq75dz+4iFqIQIZka189tx1BQLOp0Skc=
904-
github.com/coder/guts v1.1.0 h1:EACEds9o4nwFjynDWsw1mvls0Xg91e74vBrqwz8BcGY=
905-
github.com/coder/guts v1.1.0/go.mod h1:31NO4z6MVTOD4WaCLqE/hUAHGgNok9sRbuMc/LZFopI=
904+
github.com/coder/guts v1.3.1-0.20250428170043-ad369017e95b h1:tfLKcE2s6D7YpFk7MUUCDE0Xbbmac+k2GqO8KMjv/Ug=
905+
github.com/coder/guts v1.3.1-0.20250428170043-ad369017e95b/go.mod h1:31NO4z6MVTOD4WaCLqE/hUAHGgNok9sRbuMc/LZFopI=
906906
github.com/coder/pq v1.10.5-0.20240813183442-0c420cb5a048 h1:3jzYUlGH7ZELIH4XggXhnTnP05FCYiAFeQpoN+gNR5I=
907907
github.com/coder/pq v1.10.5-0.20240813183442-0c420cb5a048/go.mod h1:AlVN5x4E4T544tWzH6hKfbfQvm3HdbOxrmggDNAPY9o=
908908
github.com/coder/pretty v0.0.0-20230908205945-e89ba86370e0 h1:3A0ES21Ke+FxEM8CXx9n47SZOKOpgSE1bbJzlE4qPVs=

scripts/apitypings/main.go

+5
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,12 @@ func main() {
6767

6868
func TsMutations(ts *guts.Typescript) {
6969
ts.ApplyMutations(
70+
// TODO: Remove 'NotNullMaps'. This is hiding potential bugs
71+
// of referencing maps that are actually null.
72+
config.NotNullMaps,
7073
FixSerpentStruct,
74+
// Prefer enums as types
75+
config.EnumAsTypes,
7176
// Enum list generator
7277
config.EnumLists,
7378
// Export all top level types

site/src/api/typesGenerated.ts

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)