Skip to content

Commit

Permalink
Get rid of hack/after-build scripts
Browse files Browse the repository at this point in the history
The build is now fast enough to not need them.
  • Loading branch information
thockin committed May 9, 2016
1 parent 833770d commit 18e7a3e
Show file tree
Hide file tree
Showing 29 changed files with 434 additions and 760 deletions.
13 changes: 7 additions & 6 deletions docs/devel/adding-an-APIGroup.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ We plan on improving the way the types are factored in the future; see
in which this might evolve.

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

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

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


Expand All @@ -89,7 +89,8 @@ gen-conversion script.

3. Generate protobuf objects:

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

### Client (optional):
Expand Down
4 changes: 0 additions & 4 deletions hack/after-build/README.md

This file was deleted.

42 changes: 0 additions & 42 deletions hack/after-build/run-codegen.sh

This file was deleted.

26 changes: 0 additions & 26 deletions hack/after-build/run-import-boss.sh

This file was deleted.

73 changes: 0 additions & 73 deletions hack/after-build/update-generated-docs.sh

This file was deleted.

101 changes: 0 additions & 101 deletions hack/after-build/update-swagger-spec.sh

This file was deleted.

86 changes: 0 additions & 86 deletions hack/after-build/verify-description.sh

This file was deleted.

Loading

0 comments on commit 18e7a3e

Please sign in to comment.