部署与运维

upstream-patches

pulumi/agent-skills

Create, amend, remove, and rebase patches for Terraform provider submodules using `./scripts/upstream.sh`. Use when `upgrade-provider` or manual patch work needs owning-patch lookup, patch conflict fixes, patch/hunk removal, or upstream rebase.

  • 638 次安装
  • 78 星标
  • 收录于

安装命令

npx skills add https://github.com/pulumi/agent-skills --skill upstream-patches

SKILL.md

Upstream Patches

upstream/ is a git submodule pointing to the upstream Terraform provider. patches/ contains patch files applied on top of it. Use ./scripts/upstream.sh to manage patch state.

Default Behavior

  • If fixing a regression introduced by an existing patch, amend the owning patch commit.
  • Do not create a new patch unless the user explicitly asks.

Commands Reference

Command Description
./scripts/upstream.sh init Initialize upstream and apply patches to working directory
./scripts/upstream.sh init -f Destructively discard checkout/rebase state and re-initialize upstream
./scripts/upstream.sh checkout Create branch with patches as commits for editing
./scripts/upstream.sh rebase -i Interactively edit patch commits
./scripts/upstream.sh rebase -o <commit> Rebase patches onto a new upstream commit
./scripts/upstream.sh check_in Write commits back to patches and exit checkout mode