internal: check for new majors in v2 #3078
Draft
+258
−80
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What does this PR do?
Checks for new major versions on github in v2
TODO: address the cases where the
contrib
directory path ends in a suffix.examples:
labstack/echo
->contrib/labstack/echo.v4
(but it's looking forcontrib/labstack/echo
)emicklei/go-restful
->contrib/emicklei/go-restful.v3
Motivation
In the original PR, we used a hardcoded, manual
integration_go.mod
to detect if new major versions (corresponding to new packages) have been released. However, inv2
each package will be treated as its own contrib with its own correspondinggo.mod
. We want to parse thesego.mod
files to check the currentlatest
major, and detect if a new major is available.Reviewer's Checklist
v2-dev
branch and reviewed by @DataDog/apm-go.Unsure? Have a question? Request a review!