Skip to content

Commit bd8b702

Browse files
committed
chore: switch gots -> guts (package rename)
1 parent 8e72156 commit bd8b702

File tree

4 files changed

+19
-11
lines changed

4 files changed

+19
-11
lines changed

go.mod

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
module github.com/coder/coder/v2
22

3-
go 1.22.8
3+
go 1.23.0
4+
5+
toolchain go1.23.3
46

57
// Required until a v3 of chroma is created to lazily initialize all XML files.
68
// None of our dependencies seem to use the registries anyways, so this
@@ -182,7 +184,7 @@ require (
182184
golang.org/x/sync v0.9.0
183185
golang.org/x/sys v0.27.0
184186
golang.org/x/term v0.26.0
185-
golang.org/x/text v0.20.0
187+
golang.org/x/text v0.20.0 // indirect
186188
golang.org/x/tools v0.27.0
187189
golang.org/x/xerrors v0.0.0-20240903120638-7835f813f4da
188190
google.golang.org/api v0.209.0
@@ -224,8 +226,11 @@ require (
224226
github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.12.0 // indirect
225227
github.com/charmbracelet/x/ansi v0.4.5 // indirect
226228
github.com/charmbracelet/x/term v0.2.0 // indirect
229+
github.com/coder/guts v0.0.0-20241127131903-b65758ff0bb6 // indirect
230+
github.com/dop251/goja v0.0.0-20241024094426-79f3a7efcdbd // indirect
227231
github.com/eapache/queue/v2 v2.0.0-20230407133247-75960ed334e4 // indirect
228232
github.com/erikgeiser/coninput v0.0.0-20211004153227-1c3628e74d0f // indirect
233+
github.com/go-sourcemap/sourcemap v2.1.3+incompatible // indirect
229234
github.com/go-viper/mapstructure/v2 v2.0.0 // indirect
230235
github.com/googleapis/gax-go/v2 v2.14.0 // indirect
231236
github.com/hashicorp/go-plugin v1.6.1 // indirect
@@ -298,7 +303,7 @@ require (
298303
github.com/cloudflare/circl v1.3.7 // indirect
299304
github.com/containerd/continuity v0.4.3 // indirect
300305
github.com/coreos/go-iptables v0.6.0 // indirect
301-
github.com/dlclark/regexp2 v1.11.0 // indirect
306+
github.com/dlclark/regexp2 v1.11.4 // indirect
302307
github.com/docker/cli v27.1.1+incompatible // indirect
303308
github.com/docker/docker v27.2.0+incompatible // indirect
304309
github.com/docker/go-connections v0.5.0 // indirect

go.sum

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,8 @@ github.com/coder/go-httpstat v0.0.0-20230801153223-321c88088322 h1:m0lPZjlQ7vdVp
217217
github.com/coder/go-httpstat v0.0.0-20230801153223-321c88088322/go.mod h1:rOLFDDVKVFiDqZFXoteXc97YXx7kFi9kYqR+2ETPkLQ=
218218
github.com/coder/go-scim/pkg/v2 v2.0.0-20230221055123-1d63c1222136 h1:0RgB61LcNs24WOxc3PBvygSNTQurm0PYPujJjLLOzs0=
219219
github.com/coder/go-scim/pkg/v2 v2.0.0-20230221055123-1d63c1222136/go.mod h1:VkD1P761nykiq75dz+4iFqIQIZka189tx1BQLOp0Skc=
220+
github.com/coder/guts v0.0.0-20241127131903-b65758ff0bb6 h1:kfue0W2wVPBtb7xUC8NDS+KQuYkysRiC7rRryYaumEc=
221+
github.com/coder/guts v0.0.0-20241127131903-b65758ff0bb6/go.mod h1:NpXPfboumDmFosCGHThTW2Ke4O4xn1hOSlKMD+TK4Oc=
220222
github.com/coder/pq v1.10.5-0.20240813183442-0c420cb5a048 h1:3jzYUlGH7ZELIH4XggXhnTnP05FCYiAFeQpoN+gNR5I=
221223
github.com/coder/pq v1.10.5-0.20240813183442-0c420cb5a048/go.mod h1:AlVN5x4E4T544tWzH6hKfbfQvm3HdbOxrmggDNAPY9o=
222224
github.com/coder/pretty v0.0.0-20230908205945-e89ba86370e0 h1:3A0ES21Ke+FxEM8CXx9n47SZOKOpgSE1bbJzlE4qPVs=
@@ -281,6 +283,8 @@ github.com/docker/go-connections v0.5.0 h1:USnMq7hx7gwdVZq1L49hLXaFtUdTADjXGp+uj
281283
github.com/docker/go-connections v0.5.0/go.mod h1:ov60Kzw0kKElRwhNs9UlUHAE/F9Fe6GLaXnqyDdmEXc=
282284
github.com/docker/go-units v0.5.0 h1:69rxXcBk27SvSaaxTtLh/8llcHD8vYHT7WSdRZ/jvr4=
283285
github.com/docker/go-units v0.5.0/go.mod h1:fgPhTUdO+D/Jk86RDLlptpiXQzgHJF7gydDDbaIK4Dk=
286+
github.com/dop251/goja v0.0.0-20241024094426-79f3a7efcdbd h1:QMSNEh9uQkDjyPwu/J541GgSH+4hw+0skJDIj9HJ3mE=
287+
github.com/dop251/goja v0.0.0-20241024094426-79f3a7efcdbd/go.mod h1:MxLav0peU43GgvwVgNbLAj1s/bSGboKkhuULvq/7hx4=
284288
github.com/dustin/go-humanize v1.0.0/go.mod h1:HtrtbFcZ19U5GC7JDqmcUSB87Iq5E25KnS6fMYU6eOk=
285289
github.com/dustin/go-humanize v1.0.1 h1:GzkhY7T5VNhEkwH0PVJgjz+fX1rhBrR7pRT3mDkpeCY=
286290
github.com/dustin/go-humanize v1.0.1/go.mod h1:Mu1zIs6XwVuF/gI1OepvI0qD18qycQx+mFykh5fBlto=
@@ -402,6 +406,8 @@ github.com/go-playground/universal-translator v0.18.1/go.mod h1:xekY+UJKNuX9WP91
402406
github.com/go-playground/validator/v10 v10.2.0/go.mod h1:uOYAAleCW8F/7oMFd6aG0GOhaH6EGOAJShg8Id5JGkI=
403407
github.com/go-playground/validator/v10 v10.23.0 h1:/PwmTwZhS0dPkav3cdK9kV1FsAmrL8sThn8IHr/sO+o=
404408
github.com/go-playground/validator/v10 v10.23.0/go.mod h1:dbuPbCMFw/DrkbEynArYaCwl3amGuJotoKCe95atGMM=
409+
github.com/go-sourcemap/sourcemap v2.1.3+incompatible h1:W1iEw64niKVGogNgBN3ePyLFfuisuzeidWPMPWmECqU=
410+
github.com/go-sourcemap/sourcemap v2.1.3+incompatible/go.mod h1:F8jJfvm2KbVjc5NqelyYJmf/v5J0dwNLS2mL4sNA1Jg=
405411
github.com/go-sql-driver/mysql v1.8.1 h1:LedoTUt/eveggdHS9qUFC1EFSa8bU2+1pZjSRpvNJ1Y=
406412
github.com/go-sql-driver/mysql v1.8.1/go.mod h1:wEBSXgmK//2ZFJyE+qWnIsVGmvmEKlqwuVSjsCm7DZg=
407413
github.com/go-test/deep v1.0.3/go.mod h1:wGDj63lr65AM2AQyKZd/NYHGb0R+1RLqB8NKt3aSFNA=

scripts/apitypings/go.mod

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,7 @@ module github.com/coder/coder/scripts/apitypings
22

33
go 1.23.0
44

5-
toolchain go1.23.3
6-
75
require (
8-
github.com/coder/gots v0.0.0-20241126222907-985a03a876f0
96
github.com/stretchr/testify v1.10.0
107
)
118

scripts/apitypings/main.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ import (
44
"fmt"
55
"log"
66

7-
"github.com/coder/gots"
8-
"github.com/coder/gots/config"
7+
"github.com/coder/guts"
8+
"github.com/coder/guts/config"
99

1010
// Must import the packages we are trying to convert
1111
// And include the ones we are referencing
@@ -16,7 +16,7 @@ import (
1616
)
1717

1818
func main() {
19-
gen, err := gots.NewGolangParser()
19+
gen, err := guts.NewGolangParser()
2020
if err != nil {
2121
log.Fatalf("new convert: %v", err)
2222
}
@@ -62,7 +62,7 @@ func main() {
6262
fmt.Println(output)
6363
}
6464

65-
func TsMutations(ts *gots.Typescript) {
65+
func TsMutations(ts *guts.Typescript) {
6666
ts.ApplyMutations(
6767
// Enum list generator
6868
config.EnumLists,
@@ -74,7 +74,7 @@ func TsMutations(ts *gots.Typescript) {
7474
}
7575

7676
// TypeMappings is all the custom types for codersdk
77-
func TypeMappings(gen *gots.GoParser) error {
77+
func TypeMappings(gen *guts.GoParser) error {
7878
gen.IncludeCustomDeclaration(config.StandardMappings())
7979

8080
err := gen.IncludeCustom(map[string]string{

0 commit comments

Comments
 (0)