Skip to content

Commit

Permalink
Fix env var name
Browse files Browse the repository at this point in the history
  • Loading branch information
pjanotti committed Jan 7, 2025
1 parent b1dfb89 commit 46438ee
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Makefile.Common
Original file line number Diff line number Diff line change
Expand Up @@ -259,15 +259,15 @@ gci: $(TOOLS_BIN_DIR)/gci
@echo "running $(GCI)"
@$(GCI) write -s standard -s default -s "prefix(github.com/open-telemetry/opentelemetry-collector-contrib)" $(ALL_SRC_AND_DOC)

CHANGED_GOLANG_SRCS?=$(shell git diff main --name-only | grep -E '.*\.go$$' | grep -v -E '.*_test\.go$$')
CHANGED_GOLANG_SOURCES?=$(shell git diff main --name-only | grep -E '.*\.go$$' | grep -v -E '.*_test\.go$$')
.PHONY: for-affected-components
for-affected-components:
@echo "Checking for affected components..."
@if [ -z '$(CHANGED_GOLANG_SRCS)' ]; then \
@if [ -z '$(CHANGED_GOLANG_SOURCES)' ]; then \
echo "No go source changes detected in shippable code."; \
else \
cd $(SRC_ROOT); \
DEPENDENT_PKGS=$$(echo $(CHANGED_GOLANG_SRCS) | xargs sed -n 's|^package .* // import "\(.*\)"$$|\1|p' | uniq); \
DEPENDENT_PKGS=$$(echo $(CHANGED_GOLANG_SOURCES) | xargs sed -n 's|^package .* // import "\(.*\)"$$|\1|p' | uniq); \
if [ -z '$${DEPENDENT_PKGS}' ]; then \
echo "No other package depends on the one being changed."; \
else \
Expand Down

0 comments on commit 46438ee

Please sign in to comment.