Skip to content
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

Cleanup: Remove // +build lines #117

Merged
merged 1 commit into from
Apr 27, 2023

Conversation

ycombinator
Copy link
Contributor

What does this PR do?

This PR runs go fix -fix buildtag ./... on the elastic-agent-libs codebase to remove the deprecated // +build build tags from .go source files.

Why is it important?

Starting with Go 1.17, //go:build tags are preferred over the more bespoke // +build tags, for consistency with other //go: directives. Starting with Go 1.18, go fix is able to remove the deprecated // +build tags and only leave the corresponding //go:build tags in their place.

More here: https://go.dev/doc/go1.18#go-build-lines

@ycombinator ycombinator requested a review from a team as a code owner April 25, 2023 22:29
@ycombinator ycombinator requested review from rdner and faec and removed request for a team April 25, 2023 22:29
@ycombinator ycombinator added the Team:Elastic-Agent Label for the Agent team label Apr 25, 2023
@elasticmachine
Copy link
Collaborator

💚 Build Succeeded

the below badges are clickable and redirect to their specific view in the CI or DOCS
Pipeline View Test View Changes Artifacts preview preview

Expand to view the summary

Build stats

  • Start Time: 2023-04-25T22:29:35.904+0000

  • Duration: 13 min 41 sec

Test stats 🧪

Test Results
Failed 0
Passed 767
Skipped 5
Total 772

🤖 GitHub comments

Expand to view the GitHub comments

To re-run your PR in the CI, just comment with:

  • /test : Re-trigger the build.

@rdner
Copy link
Member

rdner commented Apr 27, 2023

The linter failures are fine, there is no actual code change in this PR.

@ycombinator ycombinator merged commit c6e6f27 into elastic:main Apr 27, 2023
@ycombinator ycombinator deleted the go-fix-build-tags branch April 27, 2023 12:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Team:Elastic-Agent Label for the Agent team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants