Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions build_sketchcollector.sh
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,9 @@ SKETCHCOL_DIR="${PATCH_DIR}/cmd/sketchcollector"
if ! grep -qE "^replace[[:space:]]+github\.com/ProjectASAP/sketchlib-go" "${SKETCHCOL_DIR}/go.mod" 2>/dev/null; then
echo "replace github.com/ProjectASAP/sketchlib-go => ${ROOT_DIR}/../sketchlib-go" >> "${SKETCHCOL_DIR}/go.mod"
fi
if ! grep -qE "^replace[[:space:]]+github\.com/ProjectASAP/asap-precompute-go" "${SKETCHCOL_DIR}/go.mod" 2>/dev/null; then
echo "replace github.com/ProjectASAP/asap-precompute-go => ${ROOT_DIR}/asap-precompute-go" >> "${SKETCHCOL_DIR}/go.mod"
fi

cd "${SKETCHCOL_DIR}"
GONOSUMCHECK="github.com/ProjectASAP/*" GONOSUMDB="github.com/ProjectASAP/*" go build -o sketchcollector . 2>&1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -322,3 +322,12 @@ replaces:
# published commit and ApplyDelta / SerializeMsgpack /
# NewFromState constructors would not resolve.
- github.com/ProjectASAP/sketchlib-go => ../../../../sketchlib-go
# asap-precompute-go is a private module living as a sibling
# subdirectory of this repo (ASAPCollector/asap-precompute-go).
# Same redirect intent as sketchlib-go but a different path: the
# OCB-generated cmd/sketchcollector/go.mod lives 3 dirs deep under
# the ASAPCollector repo root (`./opentelemetry-collector-contrib-patch/cmd/sketchcollector`),
# so ../../../asap-precompute-go resolves to the in-repo subdirectory.
# (sketchlib-go uses one extra `..` because it lives as a sibling
# repo of ASAPCollector, one level up from this repo root.)
- github.com/ProjectASAP/asap-precompute-go => ../../../asap-precompute-go