File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -268,11 +268,11 @@ CHANGED_GOLANG_SOURCES?=$(shell git diff main --name-only | grep -E '.*\.go$$' |
268
268
.PHONY: for-affected-components
269
269
for-affected-components:
270
270
@echo "Checking for affected components..."
271
- @if [ -z '$( CHANGED_GOLANG_SOURCES) ' ]; then \
271
+ @if [ -z '$${ CHANGED_GOLANG_SOURCES} ' ]; then \
272
272
echo "No go source changes detected in shippable code."; \
273
273
else \
274
274
cd $(SRC_ROOT); \
275
- DEPENDENT_PKGS=$$(echo $( CHANGED_GOLANG_SOURCES) | xargs sed -n 's|^package .* // import "\(.*\)"$$|\1|p' | uniq); \
275
+ DEPENDENT_PKGS=$$(echo $${ CHANGED_GOLANG_SOURCES} | xargs sed -n 's|^package .* // import "\(.*\)"$$|\1|p' | uniq); \
276
276
if [ -z '$${DEPENDENT_PKGS}' ]; then \
277
277
echo "No other package depends on the one being changed."; \
278
278
else \
@@ -289,11 +289,11 @@ CHANGED_GOLANG_TESTS?=$(shell git diff main --name-only | grep -E '.*_test\.go$$
289
289
.PHONY: run-changed-tests
290
290
run-changed-tests:
291
291
@echo "Checking for affected tests..."
292
- @if [ -z '$( CHANGED_GOLANG_TESTS) ' ]; then \
292
+ @if [ -z '$${ CHANGED_GOLANG_TESTS} ' ]; then \
293
293
echo "No go test changes detected."; \
294
294
else \
295
295
cd $(SRC_ROOT); \
296
- AFFECTED_TEST_DIRS=$$(echo $( CHANGED_GOLANG_TESTS) | tr ' ' '\n' | xargs dirname | uniq); \
296
+ AFFECTED_TEST_DIRS=$$(echo $${ CHANGED_GOLANG_TESTS} | tr ' ' '\n' | xargs dirname | uniq); \
297
297
if [ -z '$${AFFECTED_TEST_DIRS}' ]; then \
298
298
echo "Failed to find the affected test directories."; \
299
299
else \
You can’t perform that action at this time.
0 commit comments