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

Add check for go mod tidy #77

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Add check for go mod tidy #77

wants to merge 1 commit into from

Conversation

Moulick
Copy link

@Moulick Moulick commented Jul 30, 2024

Description of your changes

ref: crossplane-contrib/function-go-templating#105 (comment)

  1. It looks like the go.sum is very bloated due to missing cleanup. All I have done is run go mod tidy to remove unused dependencies. This is generally a good practice and results in faster downloads/less cache.
  2. Also added config to renovate to instruct it to do the go mod tidy whenever it upgrades a dependency.
  3. Add a check in lint to catch future missing cleanup

I have:

  • Read and followed Crossplane's contribution process.
  • Run go test ./...
  • Added or updated unit tests for my change.

@Moulick
Copy link
Author

Moulick commented Jul 30, 2024

@jbw976 Here you go! Could you please approve running the pipeline 😄

@Moulick
Copy link
Author

Moulick commented Jul 31, 2024

@jbw976 looks good to merge IMHO

@Moulick
Copy link
Author

Moulick commented Aug 7, 2024

@jbw976 hey, anything holding this up?

Add a step to check for go mod tidy in the CI workflow. Also configure renovate to run go mod tidy when bumping dependencies.

Signed-off-by: Moulick Aggarwal <Moulick@users.noreply.github.com>
@Moulick
Copy link
Author

Moulick commented Oct 10, 2024

So looks like the go.mod has been cleaned up in some other PR. Can we merge this one soon so the GitHub Actions and Renovate config gets in?

@Moulick Moulick changed the title Check and run go mod tidy Add check for go mod tidy Oct 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant