Skip to content

Commit ef2ff35

Browse files
howardjohnistio-testing
authored andcommitted
Update common files (istio#555)
1 parent 106d947 commit ef2ff35

File tree

5 files changed

+18
-14
lines changed

5 files changed

+18
-14
lines changed

Makefile

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ ifeq ($(BUILD_WITH_CONTAINER),1)
5656
export TARGET_OUT = /work/out/$(TARGET_OS)_$(TARGET_ARCH)
5757
CONTAINER_CLI ?= docker
5858
DOCKER_SOCKET_MOUNT ?= -v /var/run/docker.sock:/var/run/docker.sock
59-
IMG ?= gcr.io/istio-testing/build-tools:2019-10-24T14-05-17
59+
IMG ?= gcr.io/istio-testing/build-tools:master-2019-11-14T12-01-13
6060
UID = $(shell id -u)
6161
GID = `grep docker /etc/group | cut -f3 -d:`
6262
PWD = $(shell pwd)
@@ -81,14 +81,22 @@ $(info Using gcr credential directory $(HOME)/.config/gcloud.)
8181
DOCKER_CREDS_MOUNT+=--mount type=bind,source="$(HOME)/.config/gcloud",destination="/config/.config/gcloud",readonly
8282
endif
8383

84+
ENV_VARS:=
85+
ifdef HUB
86+
ENV_VARS+=-e HUB="$(HUB)"
87+
endif
88+
ifdef TAG
89+
ENV_VARS+=-e TAG="$(TAG)"
90+
endif
91+
8492
RUN = $(CONTAINER_CLI) run -t -i --sig-proxy=true -u $(UID):$(GID) --rm \
8593
-e IN_BUILD_CONTAINER="$(BUILD_WITH_CONTAINER)" \
8694
-e TZ="$(TIMEZONE)" \
8795
-e TARGET_ARCH="$(TARGET_ARCH)" \
8896
-e TARGET_OS="$(TARGET_OS)" \
8997
-e TARGET_OUT="$(TARGET_OUT)" \
90-
-e HUB="$(HUB)" \
91-
-e TAG="$(TAG)" \
98+
-e USER="${USER}" \
99+
$(ENV_VARS) \
92100
-v /etc/passwd:/etc/passwd:ro \
93101
$(DOCKER_SOCKET_MOUNT) \
94102
$(CONTAINER_OPTIONS) \
@@ -111,7 +119,7 @@ default:
111119
else
112120

113121
$(info Building with your local toolchain.)
114-
GOBIN ?= $(GOPATH)/bin
122+
export GOBIN ?= $(GOPATH)/bin
115123
include Makefile.core.mk
116124

117125
endif

common/.commonfiles.sha

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
fed5206555d5f7687306fa063c7d4e9bf536c0ac
1+
70a676918f114f4d48e7784795c05d1b4ced7884

common/Makefile.common.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ update-common-protos:
104104
@git clone -q --depth 1 --single-branch --branch $(UPDATE_BRANCH) https://github.com/istio/common-files $(TMP)/common-files
105105
@cd $(TMP)/common-files ; git rev-parse HEAD > common-protos/.commonfiles.sha
106106
@rm -fr common-protos
107-
@cp -ar $(TMP)/common-files/common-protos/* $(shell pwd)/common-protos
107+
@cp -ar $(TMP)/common-files/common-protos $(shell pwd)
108108
@rm -fr $(TMP)/common-files
109109

110110
check-clean-repo:

common/config/license-lint.yml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,6 @@ whitelisted_modules:
7171
- github.com/daviddengcn/go-colortext
7272
- github.com/dchest/siphash
7373
- github.com/dnaeon/go-vcr
74-
- github.com/docker/docker
7574
- github.com/duosecurity/duo_api_golang
7675
- github.com/dustin/go-humanize
7776
- github.com/facebookgo/stack
@@ -92,9 +91,6 @@ whitelisted_modules:
9291
- github.com/JeffAshton/win_pdh
9392
- github.com/jmespath/go-jmespath
9493
- github.com/jteeuwen/go-bindata
95-
- github.com/juju/errors
96-
- github.com/juju/loggo
97-
- github.com/juju/testing
9894
- github.com/julienschmidt/httprouter
9995
- github.com/koneu/natend
10096
- github.com/kr/logfmt
@@ -118,7 +114,6 @@ whitelisted_modules:
118114
- github.com/russross/blackfriday
119115
- github.com/russross/blackfriday/v2
120116
- github.com/sean-/seed
121-
- github.com/signalfx/com_signalfx_metrics_protobuf
122117
- github.com/smartystreets/assertions
123118
- github.com/smartystreets/goconvey
124119
- github.com/storageos/go-api

common/scripts/check_clean_repo.sh

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@
1515
# limitations under the License.
1616

1717
if [[ -n $(git status --porcelain) ]]; then
18-
git status
19-
echo "ERROR: Some files need to be updated, please run 'make gen' and include any changed files in your PR"
20-
exit 1
18+
git status
19+
git diff
20+
echo "ERROR: Some files need to be updated, please run 'make gen' and include any changed files in your PR"
21+
exit 1
2122
fi

0 commit comments

Comments
 (0)