Skip to content

Commit bd1e12c

Browse files
committed
chore: bump datadog dependency and fix the update script
Signed-off-by: Andrea Terzolo <[email protected]>
1 parent f9f6edc commit bd1e12c

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

go.mod

+1-1
Original file line numberDiff line numberDiff line change
@@ -539,4 +539,4 @@ require (
539539

540540
replace github.com/moby/buildkit v0.11.0 => github.com/moby/buildkit v0.12.5
541541

542-
replace github.com/DataDog/datadog-agent => github.com/StackVista/datadog-agent-upstream-for-process-agent v0.0.0-20250319151048-be348c0f6c9a
542+
replace github.com/DataDog/datadog-agent => github.com/StackVista/datadog-agent-upstream-for-process-agent v0.0.0-20250320133125-5b2b83ced2c0

go.sum

+2-2
Original file line numberDiff line numberDiff line change
@@ -325,8 +325,8 @@ github.com/ProtonMail/go-crypto v1.1.3/go.mod h1:rA3QumHc/FZ8pAHreoekgiAbzpNsfQA
325325
github.com/StackExchange/wmi v0.0.0-20181212234831-e0a55b97c705/go.mod h1:3eOhrUMpNV+6aFIbp5/iudMxNCF27Vw2OZgy4xEx0Fg=
326326
github.com/StackExchange/wmi v1.2.1 h1:VIkavFPXSjcnS+O8yTq7NI32k0R5Aj+v39y29VYDOSA=
327327
github.com/StackExchange/wmi v1.2.1/go.mod h1:rcmrprowKIVzvc+NUiLncP2uuArMWLCbu9SBzvHz7e8=
328-
github.com/StackVista/datadog-agent-upstream-for-process-agent v0.0.0-20250319151048-be348c0f6c9a h1:sWDzxVoXVKMYmWOAUx00E9igSsRWcVKNE7uDtNXWg90=
329-
github.com/StackVista/datadog-agent-upstream-for-process-agent v0.0.0-20250319151048-be348c0f6c9a/go.mod h1:ouLSAUPgAZplxpo8ylN9sx9cXUjdsFnO3IT3QDq+ag0=
328+
github.com/StackVista/datadog-agent-upstream-for-process-agent v0.0.0-20250320133125-5b2b83ced2c0 h1:NKP6Dg3DGXY/zZUgQwKYqqceuwus12Rs6mwvxe9jTHg=
329+
github.com/StackVista/datadog-agent-upstream-for-process-agent v0.0.0-20250320133125-5b2b83ced2c0/go.mod h1:ouLSAUPgAZplxpo8ylN9sx9cXUjdsFnO3IT3QDq+ag0=
330330
github.com/StackVista/netlink v0.0.0-20231207101142-91d41874606b h1:9UZEx5+IBk26JfiMnUrNwE7J5bcC5zYtWwI4O8Q540I=
331331
github.com/StackVista/netlink v0.0.0-20231207101142-91d41874606b/go.mod h1:twkDnbuQxJYemMlGd4JFIcuhgX83tXhKS2B/PRMpOho=
332332
github.com/StackVista/sketches-go v1.2.0-pre h1:04QAbYurRVq5LY6VK0KbFPUi4YhJcpEi5AansGdLdMw=

update-datadog-dependency.sh

+2-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,8 @@ while [ $# -gt 0 ]; do
3737

3838
# Branch names that contains a slash are not valid in go.mod, so we need to use the commit hash
3939
# See: https://github.com/golang/go/issues/32955
40-
COMMIT=$(git ls-remote https://github.com/StackVista/datadog-agent-upstream-for-process-agent.git "${BRANCH}" | awk '{print $1}')
40+
# We need the `tail -n 1` because in case of merge commits we could have 2 commit hashes in the output, just take the last one.
41+
COMMIT=$(git ls-remote https://github.com/StackVista/datadog-agent-upstream-for-process-agent.git "${BRANCH}" | tail -n 1 | awk '{print $1}')
4142
if [ -z "${COMMIT}" ]; then
4243
echo "Error: commit not found for ${BRANCH}"
4344
exit 1

0 commit comments

Comments
 (0)