mirror of
https://github.com/kubernetes-sigs/kustomize.git
synced 2026-05-17 18:25:26 +00:00
update release tools for go workspace mode
This commit is contained in:
@@ -57,8 +57,6 @@ func (e *Editor) Tidy() error {
|
||||
func (e *Editor) Pin(target misc.LaModule, oldV, newV semver.SemVer) error {
|
||||
err := e.run(
|
||||
"edit",
|
||||
"-dropreplace="+target.ImportPath(),
|
||||
"-dropreplace="+target.ImportPath()+"@"+oldV.String(),
|
||||
"-require="+target.ImportPath()+"@"+newV.String(),
|
||||
)
|
||||
if err != nil {
|
||||
|
||||
@@ -349,43 +349,6 @@ Undraft the release on the [kustomize repo release page]:
|
||||
|
||||
* Visit the [release page] and edit the release notes as desired.
|
||||
|
||||
|
||||
## Unpin everything
|
||||
|
||||
|
||||
Go back into development mode, where all modules depend on in-repo code:
|
||||
|
||||
```
|
||||
gorepomod unpin api --doIt &&
|
||||
gorepomod unpin cmd/config --doIt &&
|
||||
gorepomod unpin kyaml --doIt
|
||||
```
|
||||
|
||||
Create the PR:
|
||||
```
|
||||
createBranch unpinEverything "Back to development mode; unpin the modules" &&
|
||||
createPr
|
||||
```
|
||||
|
||||
Run local tests while GH runs tests in the cloud:
|
||||
```
|
||||
testKustomizeRepo
|
||||
```
|
||||
|
||||
Wait for tests to pass, then merge the PR:
|
||||
```
|
||||
gh pr status # rinse, repeat
|
||||
```
|
||||
```
|
||||
gh pr merge -m
|
||||
```
|
||||
|
||||
Get back on master and do paranoia test:
|
||||
```
|
||||
refreshMaster &&
|
||||
testKustomizeRepo
|
||||
```
|
||||
|
||||
## Update example test target
|
||||
|
||||
[Makefile]: https://github.com/kubernetes-sigs/kustomize/blob/master/Makefile
|
||||
|
||||
@@ -121,6 +121,7 @@ checksum:
|
||||
env:
|
||||
- CGO_ENABLED=0
|
||||
- GO111MODULE=on
|
||||
- GOWORK=off
|
||||
|
||||
release:
|
||||
github:
|
||||
|
||||
Reference in New Issue
Block a user