8000 update to account for json tagged embeds · coder/coder@16ac059 · GitHub
[go: up one dir, main page]

Skip to content

Commit 16ac059

Browse files
committed
update to account for json tagged embeds
1 parent f641ab6 commit 16ac059

File tree

5 files changed

+7
-3
lines changed

5 files changed

+7
-3
lines changed

scripts/apitypings/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@
22

33
This main.go generates typescript types from the codersdk types in Go.
44

5+
Uses it's own `go.mod` to exclude goja deps from the main go.mod.

scripts/apitypings/go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ go 1.23.0
55
toolchain go1.23.3
66

77
require (
8-
github.com/coder/gots v0.0.0-20241126221454-18fbabbd18c5
8+
github.com/coder/gots v0.0.0-20241126222907-985a03a876f0
99
github.com/stretchr/testify v1.10.0
1010
)
1111

scripts/apitypings/go.sum

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,8 @@ github.com/coder/gots v0.0.0-20241126213537-91cc19e817e5 h1:zBru83IE+s2sc3p11gm/
6060
github.com/coder/gots v0.0.0-20241126213537-91cc19e817e5/go.mod h1:zH5CGux/eew1rvjjoKKQloiiQMTu2qdx7xIgmPzCRbg=
6161
github.com/coder/gots v0.0.0-20241126221454-18fbabbd18c5 h1:f/mc6/A4owCKhJAjSGtWk/kvY6UVKmkE5feWzLeDWHc=
6262
github.com/coder/gots v0.0.0-20241126221454-18fbabbd18c5/go.mod h1:zH5CGux/eew1rvjjoKKQloiiQMTu2qdx7xIgmPzCRbg=
63+
github.com/coder/gots v0.0.0-20241126222907-985a03a876f0 h1:0jxONsMRoXchCdCcfcXlaVm1ciLkF6LLBDa7OgF4HJw=
64+
github.com/coder/gots v0.0.0-20241126222907-985a03a876f0/go.mod h1:zH5CGux/eew1rvjjoKKQloiiQMTu2qdx7xIgmPzCRbg=
6365
github.com/coder/pretty v0.0.0-20230908205945-e89ba86370e0 h1:3A0ES21Ke+FxEM8CXx9n47SZOKOpgSE1bbJzlE4qPVs=
6466
github.com/coder/pretty v0.0.0-20230908205945-e89ba86370e0/go.mod h1:5UuS2Ts+nTToAMeOjNlnHFkPahrtDkmpydBen/3wgZc=
6567
github.com/coder/serpent v0.8.0 h1:6OR+k6fekhSeEDmwwzBgnSjaa7FfGGrMlc3GoAEH9dg=

scripts/apitypings/main.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ func main() {
2323

2424
generateDirectories := []string{
2525
"github.com/coder/coder/v2/codersdk",
26-
//"github.com/coder/coder/codersdk/health",
26+
"github.com/coder/coder/v2/codersdk/health",
2727
}
2828
for _, dir := range generateDirectories {
2929
err = gen.Include(dir, true)
@@ -34,7 +34,7 @@ func main() {
3434

3535
referencePackages := []string{
3636
"github.com/coder/serpent",
37-
//"./coderd/healthcheck/health",
37+
"github.com/coder/coder/v2/coderd/healthcheck/health",
3838
}
3939
for _, pkg := range referencePackages {
4040
err = gen.Include(pkg, false)

scripts/apitypings/testdata/genericmap/genericmap.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
// From codersdk/genericmap.go
44
export interface Buzz {
5+
readonly foo: Foo;
56
readonly bazz: string;
67
}
78

0 commit comments

Comments
 (0)
0