Skip to content

Commit

Permalink
Drop //go:generate since we need hack/update-codegen.sh anyways (#801)
Browse files Browse the repository at this point in the history
  • Loading branch information
mattmoor committed Oct 30, 2020
1 parent 51a0dea commit b7100fc
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
5 changes: 4 additions & 1 deletion hack/update-codegen.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,7 @@ export PATH="${GOPATH}/bin:${PATH}"
go mod tidy
go mod vendor
go run $PROJECT_ROOT/cmd/crane/help/main.go --dir=$PROJECT_ROOT/cmd/crane/doc/
go generate ./...

go run ./vendor/github.com/maxbrunsfeld/counterfeiter/v6/ -o pkg/v1/fake/index.go ${PROJECT_ROOT}/pkg/v1 ImageIndex
go run ./vendor/github.com/maxbrunsfeld/counterfeiter/v6/ -o pkg/v1/fake/image.go ${PROJECT_ROOT}/pkg/v1 Image
go run ./vendor/k8s.io/code-generator/cmd/deepcopy-gen -O zz_deepcopy_generated --go-header-file $BOILER_PLATE_FILE -i github.com/google/go-containerregistry/pkg/v1
1 change: 0 additions & 1 deletion pkg/v1/doc.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
// See the License for the specific language governing permissions and
// limitations under the License.

//go:generate go run ./../../vendor/k8s.io/code-generator/cmd/deepcopy-gen/ -O zz_deepcopy_generated --go-header-file $BOILER_PLATE_FILE -i .
// +k8s:deepcopy-gen=package

// Package v1 defines structured types for OCI v1 images
Expand Down
1 change: 0 additions & 1 deletion pkg/v1/image.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ import (
)

// Image defines the interface for interacting with an OCI v1 image.
//go:generate go run ./../../vendor/github.com/maxbrunsfeld/counterfeiter/v6/ -o fake/image.go . Image
type Image interface {
// Layers returns the ordered collection of filesystem layers that comprise this image.
// The order of the list is oldest/base layer first, and most-recent/top layer last.
Expand Down
1 change: 0 additions & 1 deletion pkg/v1/index.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ import (
)

// ImageIndex defines the interface for interacting with an OCI image index.
//go:generate go run ./../../vendor/github.com/maxbrunsfeld/counterfeiter/v6/ -o fake/index.go . ImageIndex
type ImageIndex interface {
// MediaType of this image's manifest.
MediaType() (types.MediaType, error)
Expand Down

0 comments on commit b7100fc

Please sign in to comment.