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

Fix plugin builds #47172

Merged
merged 1 commit into from
Oct 3, 2024
Merged

Fix plugin builds #47172

merged 1 commit into from
Oct 3, 2024

Conversation

zmb3
Copy link
Collaborator

@zmb3 zmb3 commented Oct 3, 2024

Plugins build without CGo, so they can't import (directly or indirectly) any packages that require CGo.

In #47045 we added a lib/config import to pull in a constant, which added a large dependency tree that included CGo dependencies.

Fix the builds by duplicating the constant and avoiding the import.

@zmb3 zmb3 added no-changelog Indicates that a PR does not require a changelog entry backport/branch/v16 labels Oct 3, 2024
@zmb3 zmb3 requested a review from hugoShaka October 3, 2024 22:12
Copy link
Contributor

@rosstimothy rosstimothy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we add a depguard rule to prevent "github.com/gravitational/teleport/lib/config" from slipping back into plugins?

Plugins build without CGo, so they can't import (directly or indirectly)
any packages that require CGo.

In #47045 we added a lib/config import to pull in a constant, which
added a large dependency tree that included CGo dependencies.

Fix the builds by duplicating the constant and avoiding the import.
@zmb3 zmb3 added this pull request to the merge queue Oct 3, 2024
Merged via the queue into master with commit 2b778a9 Oct 3, 2024
41 checks passed
@zmb3 zmb3 deleted the zmb3/fix-plugins-build branch October 3, 2024 22:52
@public-teleport-github-review-bot

@zmb3 See the table below for backport results.

Branch Result
branch/v16 Failed

@zmb3 zmb3 mentioned this pull request Oct 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport/branch/v16 no-changelog Indicates that a PR does not require a changelog entry size/sm
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants