mirror of
https://github.com/hanzoai/common.git
synced 2026-10-30 18:44:05 +00:00
Module path renamed github.com/prometheus/common → github.com/hanzoai/common. The only functional patch is config/http_config.go: strip conntrack-based dial-context instrumentation, replace with stdlib net.Dialer. This breaks the transitive chain prometheus/common/config → mwitkow/go-conntrack → prometheus/client_golang/prometheus that was leaking into every consumer of prometheus/common/config (alertmanager notifiers, etc.). Functional impact: HTTP clients built via NewClientFromConfig no longer emit go-conntrack connection-tracking metrics (active/closed counters). The connection count is observable via the underlying http.Transport metrics that luxfi/metric ships, so this is loss-of-observability-zero for callers on the Hanzo/Lux stack.
13 lines
295 B
Bash
13 lines
295 B
Bash
#!/usr/bin/env bash
|
|
|
|
readarray -t mod_files < <(find . -type f -name go.mod)
|
|
|
|
echo "Checking files ${mod_files[@]}"
|
|
|
|
matches=$(awk '$1 == "go" {print $2}' "${mod_files[@]}" | sort -u | wc -l)
|
|
|
|
if [[ "${matches}" -ne 1 ]]; then
|
|
echo 'Not all go.mod files have matching go versions'
|
|
exit 1
|
|
fi
|