File tree Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change 14
14
# See the License for the specific language governing permissions and
15
15
# limitations under the License.
16
16
17
+ # This is a snapshot of https://github.com/kubernetes/code-generator/blob/50b561225d70b3eb79a1faafd3dfe7b1a62cbe73/generate-groups.sh
18
+
17
19
set -o errexit
18
20
set -o nounset
19
21
set -o pipefail
Original file line number Diff line number Diff line change @@ -25,9 +25,14 @@ CODEGEN_PKG=${CODEGEN_PKG:-$(cd "${SCRIPT_ROOT}"; ls -d -1 ./vendor/k8s.io/code-
25
25
# --output-base because this script should also be able to run inside the vendor dir of
26
26
# k8s.io/kubernetes. The output-base is needed for the generators to output into the vendor dir
27
27
# instead of the $GOPATH directly. For normal projects this can be dropped.
28
+
29
+ # go modules do not bring this file so we create a runtime symbolic link from our copy.
30
+ cp " ${SCRIPT_ROOT} " /hack/generate-groups.sh " ${CODEGEN_PKG} " /generate-groups.sh
28
31
" ${CODEGEN_PKG} " /generate-groups.sh " deepcopy,client" \
29
32
github.com/openshift/machine-api-operator/pkg/generated \
30
33
github.com/openshift/machine-api-operator/pkg/apis \
31
34
healthchecking:v1alpha1 \
32
35
--output-base " $( dirname " ${BASH_SOURCE[0]} " ) /../../../.." \
33
36
--go-header-file " ${SCRIPT_ROOT} " /hack/boilerplate.go.txt
37
+
38
+ rm -f " ${CODEGEN_PKG} " /generate-groups.sh
You can’t perform that action at this time.
0 commit comments