mirror of
https://github.com/gravitational/teleport.git
synced 2026-10-28 03:19:47 +08:00
Deepcopy Patch Workflow
This repository vendors deepcopy.go from goderive and applies a custom patch to support *time.Time deep copy.
Workflow
- Fetch upstream
deepcopy.go
$ 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
- Apply custom patch
$ patch deepcopy.go < 0001-add-time-deepcopy-support.patch