Back to Teleport

Deepcopy Patch Workflow

build.assets/tooling/cmd/goderive/plugin/deepcopy/README.md

19.0.1-dev578 B
Original Source

Deepcopy Patch Workflow

This repository vendors deepcopy.go from goderive and applies a custom patch to support *time.Time deep copy.

Workflow

  1. Fetch upstream deepcopy.go
bash
$ GODERIVE_VERSION=$(go list -m -f '{{.Version}}' github.com/awalterschulze/goderive)
$ curl -fsSL "https://raw.githubusercontent.com/awalterschulze/goderive/refs/tags/${GODERIVE_VERSION}/plugin/deepcopy/deepcopy.go" -o deepcopy.go
  1. Apply custom patch
bash
$ patch deepcopy.go < 0001-add-time-deepcopy-support.patch