Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Vendor github.com/prometheus/prometheus dependency to avoid conflicts…
… with Otel collector deps in elastic agent. [git-generate] module=github.com/prometheus/prometheus version=v0.54.1 go_import_path=${module}@${version} go_mod_path=https://raw.githubusercontent.com/prometheus/prometheus/refs/tags/${version}/go.mod go get ${go_import_path} go mod vendor mkdir -p _vendor/${go_import_path} cp -R vendor/${module}/ _vendor/${go_import_path} curl ${go_mod_path} -o _vendor/${go_import_path}/go.mod pushd _vendor/${go_import_path} go mod tidy popd rm -r vendor go mod edit -droprequire=${module} go mod edit -require=${module}/v2@v2.54.1 go mod edit -replace=${module}/v2=./_vendor/${go_import_path} grep -Rl --include="*.go" ${module} | xargs sed -i "" "s|${module}|${module}/v2|g" go mod tidy
- Loading branch information