update release tools for go workspace mode

This commit is contained in:
natasha41575
2022-07-11 10:34:08 -07:00
parent e1b6aa393a
commit ba77fd5b7f
3 changed files with 1 additions and 39 deletions

View File

@@ -57,8 +57,6 @@ func (e *Editor) Tidy() error {
func (e *Editor) Pin(target misc.LaModule, oldV, newV semver.SemVer) error { func (e *Editor) Pin(target misc.LaModule, oldV, newV semver.SemVer) error {
err := e.run( err := e.run(
"edit", "edit",
"-dropreplace="+target.ImportPath(),
"-dropreplace="+target.ImportPath()+"@"+oldV.String(),
"-require="+target.ImportPath()+"@"+newV.String(), "-require="+target.ImportPath()+"@"+newV.String(),
) )
if err != nil { if err != nil {

View File

@@ -349,43 +349,6 @@ Undraft the release on the [kustomize repo release page]:
* Visit the [release page] and edit the release notes as desired. * 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 ## Update example test target
[Makefile]: https://github.com/kubernetes-sigs/kustomize/blob/master/Makefile [Makefile]: https://github.com/kubernetes-sigs/kustomize/blob/master/Makefile

View File

@@ -121,6 +121,7 @@ checksum:
env: env:
- CGO_ENABLED=0 - CGO_ENABLED=0
- GO111MODULE=on - GO111MODULE=on
- GOWORK=off
release: release:
github: github: