-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add major version "v7" to import path #16331
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
kvch
force-pushed
the
add-major-version-to-imports
branch
from
February 14, 2020 12:53
dd6dd28
to
460e0a2
Compare
kvch
changed the title
add major version to import path
Add major version "v7" to import path
Feb 14, 2020
kvch
added
[zube]: In Progress
Team:Services
(Deprecated) Label for the former Integrations-Services team
labels
Feb 18, 2020
zube
bot
added
[zube]: Inbox
[zube]: In Progress
and removed
[zube]: In Progress
[zube]: Inbox
labels
Feb 18, 2020
zube
bot
added
[zube]: In Progress
[zube]: Inbox
and removed
[zube]: In Progress
[zube]: Inbox
labels
Feb 18, 2020
kvch
force-pushed
the
add-major-version-to-imports
branch
from
February 19, 2020 11:42
8711daf
to
9c4fefe
Compare
kvch
force-pushed
the
add-major-version-to-imports
branch
from
February 20, 2020 11:09
9c4fefe
to
f18ead0
Compare
jsoriano
approved these changes
Feb 20, 2020
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Grepping around I couldn't find wrong import paths, and make check is green, not sure what else to check. We can fix other issues in smaller PRs as they appear.
kvch
added a commit
that referenced
this pull request
Feb 26, 2020
## What does this PR do? This PR changes the import path of Beats from `github.com/elastic/beats` to `github.com/elastic/beats/v7`. Some of the migration was done using this tool: https://github.com/marwan-at-work/mod However, it is not perfect so I had to use `sed`, too. ## Why is it important? Every go module which has a major version bigger than v1 has to include the major version in its import path: > By definition, a new major version of a package is not backwards compatible with the previous version. This means a new major version of a module must have a different module path than the previous version. Starting with v2, the major version must appear at the end of the module path (declared in the module statement in the go.mod file).
kvch
added a commit
that referenced
this pull request
Feb 27, 2020
## What does this PR do? This PR changes the import path of Beats from `github.com/elastic/beats` to `github.com/elastic/beats/v7`. Some of the migration was done using this tool: https://github.com/marwan-at-work/mod However, it is not perfect so I had to use `sed`, too. ## Why is it important? Every go module which has a major version bigger than v1 has to include the major version in its import path: > By definition, a new major version of a package is not backwards compatible with the previous version. This means a new major version of a module must have a different module path than the previous version. Starting with v2, the major version must appear at the end of the module path (declared in the module statement in the go.mod file).
kvch
added a commit
that referenced
this pull request
Feb 28, 2020
## What does this PR do? This PR changes the import path of Beats from `github.com/elastic/beats` to `github.com/elastic/beats/v7`. Some of the migration was done using this tool: https://github.com/marwan-at-work/mod However, it is not perfect so I had to use `sed`, too. ## Why is it important? Every go module which has a major version bigger than v1 has to include the major version in its import path: > By definition, a new major version of a package is not backwards compatible with the previous version. This means a new major version of a module must have a different module path than the previous version. Starting with v2, the major version must appear at the end of the module path (declared in the module statement in the go.mod file).
kvch
added a commit
that referenced
this pull request
Mar 2, 2020
## What does this PR do? This PR changes the import path of Beats from `github.com/elastic/beats` to `github.com/elastic/beats/v7`. Some of the migration was done using this tool: https://github.com/marwan-at-work/mod However, it is not perfect so I had to use `sed`, too. ## Why is it important? Every go module which has a major version bigger than v1 has to include the major version in its import path: > By definition, a new major version of a package is not backwards compatible with the previous version. This means a new major version of a module must have a different module path than the previous version. Starting with v2, the major version must appear at the end of the module path (declared in the module statement in the go.mod file).
kvch
added a commit
that referenced
this pull request
Mar 3, 2020
## What does this PR do? This PR changes the import path of Beats from `github.com/elastic/beats` to `github.com/elastic/beats/v7`. Some of the migration was done using this tool: https://github.com/marwan-at-work/mod However, it is not perfect so I had to use `sed`, too. ## Why is it important? Every go module which has a major version bigger than v1 has to include the major version in its import path: > By definition, a new major version of a package is not backwards compatible with the previous version. This means a new major version of a module must have a different module path than the previous version. Starting with v2, the major version must appear at the end of the module path (declared in the module statement in the go.mod file).
leweafan
pushed a commit
to leweafan/beats
that referenced
this pull request
Apr 28, 2023
## What does this PR do? This PR changes the import path of Beats from `github.com/elastic/beats` to `github.com/elastic/beats/v7`. Some of the migration was done using this tool: https://github.com/marwan-at-work/mod However, it is not perfect so I had to use `sed`, too. ## Why is it important? Every go module which has a major version bigger than v1 has to include the major version in its import path: > By definition, a new major version of a package is not backwards compatible with the previous version. This means a new major version of a module must have a different module path than the previous version. Starting with v2, the major version must appear at the end of the module path (declared in the module statement in the go.mod file).
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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?
This PR changes the import path of Beats from
github.com/elastic/beats
togithub.com/elastic/beats/v7
.Some of the migration was done using this tool: https://github.com/marwan-at-work/mod
However, it is not perfect so I had to use
sed
, too.Why is it important?
Every go module which has a major version bigger than v1 has to include the major version in its import path:
Checklist
Requires #16329