Skip to content

Commit 3af079d

Browse files
Merge pull request #20287 from smarterclayton/ginkgo_build
Must use `make build` in spec file to build ginkgo
2 parents a439eee + 51cab21 commit 3af079d

File tree

3 files changed

+11
-4
lines changed

3 files changed

+11
-4
lines changed

Makefile

+4
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,10 @@ build-router-e2e-test:
6262
hack/build-go.sh test/end-to-end/end-to-end.test
6363
.PHONY: build-router-e2e-test
6464

65+
build-docs:
66+
hack/generate-docs.sh
67+
.PHONY: build-docs
68+
6569
# Run core verification and all self contained tests.
6670
#
6771
# Example:

hack/lib/constants.sh

+3
Original file line numberDiff line numberDiff line change
@@ -335,6 +335,9 @@ readonly OS_ALL_IMAGES=(
335335
# os::build::check_binaries ensures that binary sizes do not grow without approval.
336336
function os::build::check_binaries() {
337337
platform=$(os::build::host_platform)
338+
if [[ "${platform}" != "linux/amd64" && "${platform}" != "darwin/amd64" ]]; then
339+
return 0
340+
fi
338341
# enforce that certain binaries don't accidentally grow too large
339342
# IMPORTANT: contact Clayton or another master team member before altering this code
340343
if [[ -f "${OS_OUTPUT_BINPATH}/${platform}/oc" ]]; then

origin.spec

+4-4
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
# this is the version we obsolete up to. The packaging changed for Origin
1414
# 1.0.6 and OSE 3.1 such that 'openshift' package names were no longer used.
1515
%global package_refactor_version 3.0.2.900
16-
%global golang_version 1.9.1
16+
%global golang_version 1.10
1717
# %commit and %os_git_vars are intended to be set by tito custom builders provided
1818
# in the .tito/lib directory. The values in this spec file will not be kept up to date.
1919
%{!?commit:
@@ -229,7 +229,7 @@ of docker. Exclude those versions of docker.
229229
%if 0%{make_redistributable}
230230
# Create Binaries for all supported arches
231231
%{os_git_vars} OS_BUILD_RELEASE_ARCHIVES=n make build-cross
232-
%{os_git_vars} hack/build-go.sh vendor/github.com/onsi/ginkgo/ginkgo
232+
%{os_git_vars} OS_BUILD_RELEASE_ARCHIVES=n make build WHAT=vendor/github.com/onsi/ginkgo/ginkgo
233233
%else
234234
# Create Binaries only for building arch
235235
%ifarch x86_64
@@ -248,11 +248,11 @@ of docker. Exclude those versions of docker.
248248
BUILD_PLATFORM="linux/s390x"
249249
%endif
250250
OS_ONLY_BUILD_PLATFORMS="${BUILD_PLATFORM}" %{os_git_vars} OS_BUILD_RELEASE_ARCHIVES=n make build-cross
251-
OS_ONLY_BUILD_PLATFORMS="${BUILD_PLATFORM}" %{os_git_vars} hack/build-go.sh vendor/github.com/onsi/ginkgo/ginkgo
251+
OS_ONLY_BUILD_PLATFORMS="${BUILD_PLATFORM}" %{os_git_vars} OS_BUILD_RELEASE_ARCHIVES=n make build WHAT=vendor/github.com/onsi/ginkgo/ginkgo
252252
%endif
253253

254254
# Generate man pages
255-
%{os_git_vars} hack/generate-docs.sh
255+
%{os_git_vars} make build-docs
256256
%endif
257257

258258
%install

0 commit comments

Comments
 (0)