Skip to content

🏃 Add verification tools, linter and modules #821

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

Merged

Conversation

vincepri
Copy link
Member

Signed-off-by: Vince Prignano [email protected]

This PR cleans up the use of linters, uses Go Modules to build specific version of external tools (golangci-lint), and provides a way to check that go modules are always up to date.

@vincepri vincepri added this to the v0.5.x milestone Feb 25, 2020
@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. labels Feb 25, 2020
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: vincepri

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

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Feb 25, 2020
@vincepri vincepri force-pushed the add-verifications-tools branch from 15c683c to 033c594 Compare February 25, 2020 18:30
@vincepri
Copy link
Member Author

/assign @DirectXMan12

Copy link

@shawn-hurley shawn-hurley left a comment

Choose a reason for hiding this comment

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

Makefiles are not something that I am super knowledgable in, but it understandable and makes sense to me.

+1 on moving to golangci-lint

@@ -1,6 +1,6 @@
#!/usr/bin/env bash

# Copyright 2019 The Kubernetes Authors.
# Copyright 2020 The Kubernetes Authors.

Choose a reason for hiding this comment

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

more for my own knowledge, do we usually update copyright year in kubernetes when a file is updated?

Copy link
Member Author

Choose a reason for hiding this comment

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

I don't have a good answer, I changed it because it was mostly rewritten

@hypnoglow
Copy link
Contributor

It seems hack/tools/hack/tools/bin/golangci-lint binary is committed unintentionally.

The rest LGTM

@vincepri
Copy link
Member Author

vincepri commented Mar 1, 2020

@hypnoglow I force pushed and removed it, I also don't see it in the file list, am I missing something?

seems I have to re-do this again :D

@vincepri
Copy link
Member Author

vincepri commented Mar 2, 2020

/assign @alenkacz @gerred

would love to get more 👀 and feedback on this one

@vincepri vincepri force-pushed the add-verifications-tools branch from 033c594 to 814d2ab Compare March 2, 2020 15:12
@gerred
Copy link
Contributor

gerred commented Mar 2, 2020

👍 I'll take a look - was out sick for the past few days

@alenkacz
Copy link
Contributor

alenkacz commented Mar 2, 2020

/lgtm

this actually looks great, love the cleaned up makefile. Should we update some documentation or use the new targets somewhere? 🤔

EDIT: oh I see, the usage is actually in verify.sh

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Mar 2, 2020
@k8s-ci-robot k8s-ci-robot merged commit cc3327f into kubernetes-sigs:master Mar 2, 2020
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. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/XL Denotes a PR that changes 500-999 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants