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

Automatically install new golangci-lint binary when version is bumped #4567

Conversation

antoninbas
Copy link
Contributor

Until now, one had to manually remove the old binary for the new one to be installed.

Signed-off-by: Antonin Bas abas@vmware.com

Until now, one had to manually remove the old binary for the new one to
be installed.

Signed-off-by: Antonin Bas <abas@vmware.com>
@antoninbas antoninbas requested review from luolanzone and tnqn January 17, 2023 23:29
@codecov
Copy link

codecov bot commented Jan 17, 2023

Codecov Report

Merging #4567 (de06f4c) into main (4cac75b) will increase coverage by 0.08%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #4567      +/-   ##
==========================================
+ Coverage   68.41%   68.50%   +0.08%     
==========================================
  Files         400      400              
  Lines       58216    58216              
==========================================
+ Hits        39829    39879      +50     
+ Misses      15617    15568      -49     
+ Partials     2770     2769       -1     
Flag Coverage Δ *Carryforward flag
e2e-tests 38.34% <ø> (ø) Carriedforward from 4cac75b
integration-tests 34.52% <ø> (+<0.01%) ⬆️
kind-e2e-tests 47.45% <ø> (+0.14%) ⬆️
unit-tests 57.54% <ø> (-0.04%) ⬇️

*This pull request uses carry forward flags. Click here to find out more.

Impacted Files Coverage Δ
pkg/agent/cniserver/ipam/antrea_ipam.go 75.75% <0.00%> (-4.33%) ⬇️
pkg/agent/cniserver/server.go 74.94% <0.00%> (-3.44%) ⬇️
pkg/util/ip/ip.go 86.99% <0.00%> (-3.26%) ⬇️
...trollers/multicluster/resourceexport_controller.go 75.40% <0.00%> (-3.21%) ⬇️
pkg/controller/ipam/antrea_ipam_controller.go 75.25% <0.00%> (-3.02%) ⬇️
pkg/agent/controller/networkpolicy/packetin.go 74.32% <0.00%> (-2.71%) ⬇️
pkg/agent/util/ipset/ipset.go 70.73% <0.00%> (-2.44%) ⬇️
pkg/controller/grouping/controller.go 65.13% <0.00%> (-1.98%) ⬇️
pkg/ipam/ipallocator/allocator.go 88.14% <0.00%> (-1.55%) ⬇️
pkg/ipam/poolallocator/allocator.go 73.57% <0.00%> (-1.43%) ⬇️
... and 15 more

@@ -282,37 +286,38 @@ fmt:
@echo "===> Formatting Go files <==="
@gofmt -s -l -w $(GO_FILES)

.golangci-bin:
$(GOLANGCI_LINT_BIN):
Copy link
Contributor

Choose a reason for hiding this comment

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

I suppose we also need to update the Makefile in hack/netpol?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I didn't update it because it's dead code that we should remove (#1740)

Copy link
Contributor

@luolanzone luolanzone left a comment

Choose a reason for hiding this comment

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

LGTM

@antoninbas
Copy link
Contributor Author

/skip-all

@antoninbas antoninbas merged commit c286ba3 into antrea-io:main Jan 18, 2023
@antoninbas antoninbas deleted the install-new-golangci-lint-binary-when-version-is-bumped branch January 18, 2023 18:13
GraysonWu pushed a commit to GraysonWu/antrea that referenced this pull request Jan 27, 2023
…antrea-io#4567)

Until now, one had to manually remove the old binary for the new one to
be installed.

Signed-off-by: Antonin Bas <abas@vmware.com>
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.

2 participants