File tree Expand file tree Collapse file tree
ci-operator/config/openshift/api Expand file tree Collapse file tree Original file line number Diff line number Diff line change 9090 cp -Rf ./ $dir/api/
9191 rm -rf $dir/api/vendor
9292 cd $dir
93- echo "replace github.com/openshift/api => ./api" >> go.mod
93+ go mod edit -dropreplace github.com/openshift/api
94+ go mod edit -replace github.com/openshift/api=./api
9495 echo "# github.com/openshift/api => ./api" >> vendor/modules.txt
9596 sed -i "/github.com\/openshift\/api v0.0.0/ s/$/ => \.\/api/" vendor/modules.txt
9697 go mod vendor
@@ -113,8 +114,10 @@ tests:
113114 rm -rf $dir/openshift-api/vendor
114115 rm -rf $dir/openshift-client-go/vendor
115116 cd $dir
116- echo "replace github.com/openshift/api => ./openshift-api" >> go.mod
117- echo "replace github.com/openshift/client-go => ./openshift-client-go" >> go.mod
117+ go mod edit -dropreplace github.com/openshift/api
118+ go mod edit -dropreplace github.com/openshift/client-go
119+ go mod edit -replace github.com/openshift/api=./openshift-api
120+ go mod edit -replace github.com/openshift/client-go=./openshift-client-go
118121 echo "# github.com/openshift/api => ./openshift-api" >> vendor/modules.txt
119122 echo "# github.com/openshift/client-go => ./openshift-client-go" >> vendor/modules.txt
120123 sed -i "/github.com\/openshift\/api v0.0.0/ s/$/ => \.\/openshift-api/" vendor/modules.txt
You can’t perform that action at this time.
0 commit comments