Skip to content

Commit 4aff98c

Browse files
committed
Update openshift/api verify scripts to tolerate existing replace statements
1 parent 651caa0 commit 4aff98c

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

ci-operator/config/openshift/api/openshift-api-master.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ tests:
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 -replace github.com/openshift/api=./api
9494
echo "# github.com/openshift/api => ./api" >> vendor/modules.txt
9595
sed -i "/github.com\/openshift\/api v0.0.0/ s/$/ => \.\/api/" vendor/modules.txt
9696
go mod vendor
@@ -113,8 +113,8 @@ tests:
113113
rm -rf $dir/openshift-api/vendor
114114
rm -rf $dir/openshift-client-go/vendor
115115
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
116+
go mod edit -replace github.com/openshift/api=./openshift-api
117+
go mod edit -replace github.com/openshift/client-go=./openshift-client-go
118118
echo "# github.com/openshift/api => ./openshift-api" >> vendor/modules.txt
119119
echo "# github.com/openshift/client-go => ./openshift-client-go" >> vendor/modules.txt
120120
sed -i "/github.com\/openshift\/api v0.0.0/ s/$/ => \.\/openshift-api/" vendor/modules.txt

0 commit comments

Comments
 (0)