Skip to content

Conversation

SgtCoDFish
Copy link
Member

Also adds standalone licenses test; after this merges we can remove the licenses test from ci-presubmit.

also adds licenses test

Signed-off-by: Ashley Davis <ashley.davis@jetstack.io>
@jetstack-bot jetstack-bot added dco-signoff: yes Indicates that all commits in the pull request have the valid DCO sign-off message. approved Indicates a PR has been approved by an approver from all required OWNERS files. size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Dec 6, 2022
SgtCoDFish added a commit to SgtCoDFish/cert-manager that referenced this pull request Dec 6, 2022
see cert-manager/release#111

Signed-off-by: Ashley Davis <ashley.davis@jetstack.io>
SgtCoDFish added a commit to SgtCoDFish/cert-manager-testing that referenced this pull request Dec 6, 2022
Signed-off-by: Ashley Davis <ashley.davis@jetstack.io>
Copy link
Member

@wallrj wallrj left a comment

Choose a reason for hiding this comment

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

Thanks @SgtCoDFish

The results look good

Does the go.mod file contain all the dependencies?
Would the LICENCE file content change if the go.sum changed?
Could the go.sum file ever change independently of the go.mod file?

There do seem to be some additional dependencies that only exist in the go.sum file,
but I can't remember whether that means that those dependencies may not actually get compiled in to our binaries

$ diff -u <(awk '{print $1}' go.mod  | sort | uniq) <(awk '{print $1}' go.sum  | sort | uniq) 
--- /dev/fd/63	2022-12-06 16:59:24.071971418 +0000
+++ /dev/fd/62	2022-12-06 16:59:24.072971415 +0000
@@ -1,9 +1,23 @@
-
-)
+cloud.google.com/go
+cloud.google.com/go/bigquery
 cloud.google.com/go/compute
+cloud.google.com/go/datastore
+cloud.google.com/go/firestore
+cloud.google.com/go/iam
+cloud.google.com/go/pubsub
+cloud.google.com/go/storage
+dmitri.shuralyov.com/gpu/mtl
+github.com/agnivade/levenshtein
 github.com/akamai/AkamaiOPEN-edgegrid-golang
+github.com/alecthomas/template
+github.com/alecthomas/units
+github.com/andreyvit/diff
+github.com/antihax/optional
+github.com/armon/circbuf
+github.com/armon/consul-api
 github.com/armon/go-metrics
 github.com/armon/go-radix
+github.com/armon/go-socks5
 github.com/asaskevich/govalidator
 github.com/aws/aws-sdk-go
 github.com/Azure/azure-sdk-for-go
...

/lgtm
/hold in case you think these tests should also be triggered by changes to the go.sum file.

@jetstack-bot jetstack-bot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Dec 6, 2022
@jetstack-bot jetstack-bot added the lgtm Indicates that a PR is ready to be merged. label Dec 6, 2022
@jetstack-bot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: SgtCoDFish, wallrj

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:

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

@SgtCoDFish
Copy link
Member Author

/unhold

I think it's reasonable for us to trigger only based on go.mod since that lists our direct dependencies. go.sum is usually gonna be calculated based on go.mod, so I'd think we should be OK to only run based on changes to go.mod

If we wanted to add go.sum in the future it'd not be hard!

Thanks for the review!

@jetstack-bot jetstack-bot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Dec 6, 2022
@jetstack-bot jetstack-bot merged commit a45860f into cert-manager:master Dec 6, 2022
@SgtCoDFish SgtCoDFish deleted the licenses-on-change branch December 6, 2022 17:06
jetstack-bot pushed a commit to jetstack-bot/cert-manager that referenced this pull request Dec 7, 2022
see cert-manager/release#111

Signed-off-by: Ashley Davis <ashley.davis@jetstack.io>
jetstack-bot pushed a commit to jetstack-bot/cert-manager that referenced this pull request Dec 7, 2022
see cert-manager/release#111

Signed-off-by: Ashley Davis <ashley.davis@jetstack.io>
logand22 pushed a commit to gravitational/cert-manager that referenced this pull request Mar 8, 2024
see cert-manager/release#111

Signed-off-by: Ashley Davis <ashley.davis@jetstack.io>
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. dco-signoff: yes Indicates that all commits in the pull request have the valid DCO sign-off message. lgtm Indicates that a PR is ready to be merged. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants