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

Move license statements to separate files (for tmpl files) to prevent license statement duplication #373

Merged

Conversation

sergenyalcin
Copy link
Member

@sergenyalcin sergenyalcin commented Mar 13, 2024

Description of your changes

This PR moves license statements to separate files (for tmpl files) to prevent license statement duplication.

We have injected the license statements from the providers during generation. If we explicitly add the license statements to the tmpl files, related license lines are being generate as duplicate. This PR prevents this duplication.

Fixes #

I have:

  • Read and followed Upjet's [contribution process].
  • Run make reviewable to ensure this PR is ready for review.
  • Added backport release-x.y labels to auto-backport this PR if necessary.

How has this code been tested

Tested in crossplane-contrib/provider-upjet-azuread#111

…t duplication

Signed-off-by: Sergen Yalçın <yalcinsergen97@gmail.com>
Copy link
Collaborator

@ulucinar ulucinar left a comment

Choose a reason for hiding this comment

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

Thank you @sergenyalcin, lgtm.

pkg/pipeline/templates/setup.go.tmpl Outdated Show resolved Hide resolved
Signed-off-by: Sergen Yalçın <yalcinsergen97@gmail.com>
Copy link

Successfully created backport PR #374 for release-1.2.

Copy link

Successfully created backport PR #375 for release-1.1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants