Perform these steps in PR branches based on release-next (trunk).
-
Tidy dependencies.
-
Ensure you have downloaded the
@latest
artifact from the dependency(ies) you are updating in the main Ziti project, e.g.,go get -u github.com/openziti/edge@latest
-
Run
go mod tidy
in the main Ziti project and in the./zititest
sub-tree.go mod tidy cd ./zititest go mod tidy cd ..
-
-
Ensure the
go test
command succeeds. This will also ensure the project builds.go test ./...
-
Ensure PR checks succeed.
- Make sure you have a clean build in GitHub Actions.
- Make sure you have a clean build in fablab smoketest.
-
Ensure CHANGELOG.md is up to date.
- Run
ziti-ci build-release-notes
in your PR branch to generate library version updates and summarize issues. Note that you will need a working copy of each module that has changed in an adjacent directory with the default repo name in order for this to work. fixed, as long as the git commit hasfixed #<issue number>
(or fixes, closes, closed, etc.). - Sanity-check and paste the output into CHANGELOG.md under a heading like
## Component Updates and Bug Fixes
.
- Run
(
set -euxo pipefail
go list -m -f '{{ .Path }} {{ .Main }}' all \
| grep ziti | grep -v "$(go list -m)" | grep -v dilithium | cut -f 1 -d ' ' \
| xargs -n1 /bin/bash -c 'echo "Checking for updates to $@";go get -u -v $@;' ''
go mod tidy
if git diff --quiet go.mod go.sum; then
echo "no changes"
else
echo "dependency updates found"
fi
if [ -f "zititest/go.mod" ]; then
echo "./zititest$ go mod tidy"
cd zititest
go mod tidy
cd ..
fi
ziti-ci build-release-notes
)
Perform these steps in the release-next (trunk) branch which is based on main to release Ziti.
- Create a PR to merge release-next to main. Release happens by merging from the release-next branch to main.
- Ensure PR checks succeed.