Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
cmd/go: flow for easy upstream contributions #32042
We often find ourselves using an upstream package which does most of what we need but not quite, so we decide to add a new feature to it and contribute the code upstream.
Before we can write any code we need to do some boring work:
Would be nice to know if anyone found a smoother approach to easily contribute to upstream packages used in their codebase.
I don't think opening the browser, pasting a URL and pressing the fork button needs to be split into separate bullet points. Those are minuscule tasks. The real task is to edit the go.mod. You don't need to open go.mod and add the replace path manually. Just use
The set of tasks basically are -
To update your package, you need to
If/when your patch has been accepted upstream, just use