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

🐛 Collect LICENSE files from all dependencies, even without vendor dir #316

Merged
merged 1 commit into from
Sep 21, 2023

Conversation

cardil
Copy link
Contributor

@cardil cardil commented Sep 21, 2023

Changes

  • 🐛 Collect LICENSE files from all dependencies, even without vendor dir

/kind bug

Fixes #315

Release Note

The license files are collected, even if a project doesn't have the vendor directory

@knative-prow knative-prow bot added the kind/bug Categorizes issue or PR as related to a bug. label Sep 21, 2023
@knative-prow knative-prow bot added approved Indicates a PR has been approved by an approver from all required OWNERS files. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. labels Sep 21, 2023
@cardil
Copy link
Contributor Author

cardil commented Sep 21, 2023

/cc @dprotaso
/cc @upodroid
/cc @kvmware

Copy link
Member

Choose a reason for hiding this comment

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

was this committed by accident?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

No. Those are sums on the workspace level. It's the same concept as sums on module level.

However, I'm not entirely sure how they are used...

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Here's some info: https://stackoverflow.com/a/71613130

It's a bit of a useless thing, at least my understanding, but still it's a part of go tooling...

Copy link
Contributor Author

Choose a reason for hiding this comment

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

What's more confusing for me, is that this file was updated after I executed our update deps script, which runs go mod tidy in every module. This should sync proper deps in modules and the workspace file should be empty.

Maybe the update deps script should delete the go.work.sum file before the loop?!?

Copy link
Member

Choose a reason for hiding this comment

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

I'm sorta mixed on whether we should check in go.work files - there seems to be a discussion here

golang/go#53502

Copy link
Member

Choose a reason for hiding this comment

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

hack repo since it has with multiple modules seems like a candidate 🤷

@dprotaso
Copy link
Member

/lgtm
/approve

@knative-prow knative-prow bot added the lgtm Indicates that a PR is ready to be merged. label Sep 21, 2023
Copy link
Member

@upodroid upodroid left a comment

Choose a reason for hiding this comment

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

/override "style / suggester / shell"

@knative-prow
Copy link

knative-prow bot commented Sep 21, 2023

@upodroid: Overrode contexts on behalf of upodroid: style / suggester / shell

In response to this:

/override "style / suggester / shell"

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@knative-prow
Copy link

knative-prow bot commented Sep 21, 2023

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: cardil, dprotaso, upodroid

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:
  • OWNERS [cardil,dprotaso,upodroid]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@knative-prow knative-prow bot merged commit c4a34c3 into knative:main Sep 21, 2023
11 of 12 checks passed
@cardil cardil deleted the bugfix/315-restore-licenses branch September 21, 2023 15:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. kind/bug Categorizes issue or PR as related to a bug. lgtm Indicates that a PR is ready to be merged. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

update_licenses should still run when repos don't have vendor folder
3 participants