Skip to content

Upgrade to github.com/DataDog/datadog-api-client-go/v2#22

Merged
christophetd merged 1 commit intoDataDog:mainfrom
evanj:evan.jones/datadog-api-v2
Aug 8, 2023
Merged

Upgrade to github.com/DataDog/datadog-api-client-go/v2#22
christophetd merged 1 commit intoDataDog:mainfrom
evanj:evan.jones/datadog-api-v2

Conversation

@evanj
Copy link
Copy Markdown
Contributor

@evanj evanj commented Aug 8, 2023

What does this PR do?

This was mostly automated using the script below. I had to manually fix some references that have moved between the two.

set -euf -o pipefail

FILES=$(git grep --name-only 'github.com/DataDog/datadog-api-client-go/api/v2/datadog' '*.go') for FILE in $FILES; do
  echo $FILE
  sed -i '' -e 's|github.com/DataDog/datadog-api-client-go/api/v2/datadog|github.com/DataDog/datadog-api-client-go/v2/api/datadogV2|' "$FILE"
  gofmt -l -w "$FILE"
done

Motivation

I am working on some internal upgrades at Datadog.

This was mostly automated using the script below. I had to manually
fix some references that have moved between the two.

set -euf -o pipefail

FILES=$(git grep --name-only 'github.com/DataDog/datadog-api-client-go/api/v2/datadog' '*.go')
for FILE in $FILES; do
  echo $FILE
  sed -i '' -e 's|github.com/DataDog/datadog-api-client-go/api/v2/datadog|github.com/DataDog/datadog-api-client-go/v2/api/datadogV2|' "$FILE"
  gofmt -l -w "$FILE"
done
@christophetd
Copy link
Copy Markdown
Contributor

christophetd commented Aug 8, 2023

Looks good to me, I tested locally and everything looks fine

@christophetd christophetd merged commit 6d2c21c into DataDog:main Aug 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants