Upstream repo location: https://github.com/google/ml-metadata.
First change the MLMD version in VERSION file in current folder, for example: $VERSION=1.2.0.
echo -n "$VERSION" > VERSION
Run the update_version.sh
script in current folder to update related image references:
./update_version.sh
Run update_dependencies.sh in the following way:
../../hack/update-all-requirements.sh
Make sure the generated files are as expected. Update clients as described below:
Make sure you have installed tools and packages in grpc golang prerequisites.
NOTE: The versions for tools are important, following is a record for when the version combination works successfully.
apt install -y protobuf-compiler=3.15.8
go install google.golang.org/protobuf/cmd/protoc-gen-go@v1.26
go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@v1.1
make
After submitting the changes from above command, find all the modules with github.com/kubeflow/pipelines/third_party/ml-metadata
in all go.mod
files. Update them by the following steps:
- Navigate to the folder which contains the
go.mod
that you want to update. - Run
go get github.com/kubeflow/pipelines/third_party/ml-metadata@latest
. go mod tidy
To learn more, refer to Upgrading or downgrading a dependency.
Refer to frontend/README.md for MLMD components - Building generated metadata Protocol Bufers, for example: you can search for npm run build:replace
command.