Skip to content
This repository was archived by the owner on Feb 8, 2021. It is now read-only.

Commit 18e7a3e

Browse files
committed
Get rid of hack/after-build scripts
The build is now fast enough to not need them.
1 parent 833770d commit 18e7a3e

29 files changed

+434
-760
lines changed

docs/devel/adding-an-APIGroup.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@ We plan on improving the way the types are factored in the future; see
5050
in which this might evolve.
5151

5252
1. Create a folder in pkg/apis to hold you group. Create types.go in
53-
pkg/apis/`<group>`/ and pkg/apis/`<group>`/`<version>`/ to define API objects
54-
in your group;
53+
pkg/apis/`<group>`/ and pkg/apis/`<group>`/`<version>`/ to define API objects
54+
in your group;
5555

5656
2. Create pkg/apis/`<group>`/{register.go, `<version>`/register.go} to register
5757
this group's API objects to the encoding/decoding scheme (e.g.,
@@ -75,10 +75,10 @@ cmd/libs/go2idl/ tool.
7575
1. Generate conversions and deep-copies:
7676

7777
1. Add your "group/" or "group/version" into
78-
cmd/libs/go2idl/{conversion-gen, deep-copy-gen}/main.go;
78+
cmd/libs/go2idl/{conversion-gen, deep-copy-gen}/main.go;
7979
2. Make sure your pkg/apis/`<group>`/`<version>` directory has a doc.go file
80-
with the comment `// +genconversion=true`, to catch the attention of our
81-
gen-conversion script.
80+
with the comment `// +genconversion=true`, to catch the attention of our
81+
gen-conversion script.
8282
3. Run hack/update-all.sh.
8383

8484

@@ -89,7 +89,8 @@ gen-conversion script.
8989

9090
3. Generate protobuf objects:
9191

92-
1. Add your group to `cmd/libs/go2idl/go-to-protobuf/protobuf/cmd.go` to `New()` in the `Packages` field
92+
1. Add your group to `cmd/libs/go2idl/go-to-protobuf/protobuf/cmd.go` to
93+
`New()` in the `Packages` field
9394
2. Run hack/update-generated-protobuf.sh
9495

9596
### Client (optional):

hack/after-build/README.md

Lines changed: 0 additions & 4 deletions
This file was deleted.

hack/after-build/run-codegen.sh

Lines changed: 0 additions & 42 deletions
This file was deleted.

hack/after-build/run-import-boss.sh

Lines changed: 0 additions & 26 deletions
This file was deleted.

hack/after-build/update-generated-docs.sh

Lines changed: 0 additions & 73 deletions
This file was deleted.

hack/after-build/update-swagger-spec.sh

Lines changed: 0 additions & 101 deletions
This file was deleted.

hack/after-build/verify-description.sh

Lines changed: 0 additions & 86 deletions
This file was deleted.

0 commit comments

Comments
 (0)