You've already forked opentelemetry-go
							
							
				mirror of
				https://github.com/open-telemetry/opentelemetry-go.git
				synced 2025-10-31 00:07:40 +02:00 
			
		
		
		
	Fix the examples target info messaging (#1676)
The echo for the target was copied from other targets that use `dir` as an iteration variable which is not what this target uses. That means that the empty variable `dir` is unexpanded and the unhelpful message of "build /..." is echoed. This updates the iteration variable to match other targets and fixes the info messaging.
This commit is contained in:
		
							
								
								
									
										4
									
								
								Makefile
									
									
									
									
									
								
							
							
						
						
									
										4
									
								
								Makefile
									
									
									
									
									
								
							| @@ -62,9 +62,9 @@ tools: $(CROSSLINK) $(GOLANGCI_LINT) $(MISSPELL) $(STRINGER) $(TOOLS)/gojq | ||||
|  | ||||
| .PHONY: examples generate build | ||||
| examples: | ||||
| 	@set -e; for ex in $(EXAMPLES); do \ | ||||
| 	@set -e; for dir in $(EXAMPLES); do \ | ||||
| 	  echo "$(GO) build $${dir}/..."; \ | ||||
| 	  (cd "$${ex}" && \ | ||||
| 	  (cd "$${dir}" && \ | ||||
| 	   $(GO) build .); \ | ||||
| 	done | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user