Skip to content

Commit a7d7349

Browse files
committed
fix: Build binary with cleanup-cache TFO-Agent
1 parent efbd3c0 commit a7d7349

1 file changed

Lines changed: 6 additions & 8 deletions

File tree

Makefile

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -357,17 +357,15 @@ deps-verify: deps verify
357357

358358
## CI: Refresh private module checksums (for re-tagged modules)
359359
deps-refresh:
360-
@echo "$(GREEN)Refreshing private module checksums...$(NC)"
361-
@echo "$(YELLOW)Clearing cached telemetryflow modules...$(NC)"
362-
@go clean -modcache -i github.com/telemetryflow/... 2>/dev/null || true
363-
@echo "$(YELLOW)Removing old go.sum entries for telemetryflow...$(NC)"
364-
@if [ -f go.sum ]; then \
365-
grep -v "github.com/telemetryflow/" go.sum > go.sum.tmp && mv go.sum.tmp go.sum || true; \
366-
fi
360+
@echo "$(GREEN)Refreshing dependencies...$(NC)"
361+
@rm -rf vendor go.sum
362+
@echo "$(YELLOW)Clearing module cache...$(NC)"
363+
@go clean -modcache
367364
@echo "$(GREEN)Re-downloading dependencies with fresh checksums...$(NC)"
368365
@$(GOMOD) download
369366
@$(GOMOD) tidy
370-
@echo "$(GREEN)Dependencies refreshed with new checksums$(NC)"
367+
@$(GOMOD) verify
368+
@echo "$(GREEN)Dependencies refreshed$(NC)"
371369

372370
## Tidy go modules
373371
tidy:

0 commit comments

Comments
 (0)