Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions ci-operator/config/openshift/api/openshift-api-master.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ tests:
cp -Rf ./ $dir/openshift-api/
rm -rf $dir/openshift-api/vendor
rm -rf $dir/openshift-client-go/vendor
# hypershift is multi-module; vendor the ./api submodule first
cd $dir/api
go mod edit -dropreplace github.com/openshift/api
go mod edit -dropreplace github.com/openshift/client-go
Expand All @@ -128,7 +129,18 @@ tests:
sed -i "/github.com\/openshift\/client-go v0.0.0/ s/$/ => \.\.\/openshift-client-go/" vendor/modules.txt
go mod tidy
go mod vendor
# then vendor the root module, which make api uses
cd ../
go mod edit -dropreplace github.com/openshift/api
go mod edit -dropreplace github.com/openshift/client-go
go mod edit -replace github.com/openshift/api=./openshift-api
go mod edit -replace github.com/openshift/client-go=./openshift-client-go
echo "# github.com/openshift/api => ./openshift-api" >> vendor/modules.txt
echo "# github.com/openshift/client-go => ./openshift-client-go" >> vendor/modules.txt
sed -i "/github.com\/openshift\/api v0.0.0/ s/$/ => \.\/openshift-api/" vendor/modules.txt
sed -i "/github.com\/openshift\/client-go v0.0.0/ s/$/ => \.\/openshift-client-go/" vendor/modules.txt
go mod tidy
go mod vendor
make api test-envtest-api-all
container:
from: src
Expand Down