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
go-mod: remove unecessary go module helper scripts #10221
Conversation
30ba9c5
to
eb6559f
Compare
0e09ce5
to
0f6d008
Compare
test-me-please |
eb6559f
to
c51d6a7
Compare
pkg/option/config.go
Outdated
case 0: | ||
log.Warning("NodePort range was set but is empty.") | ||
default: | ||
return errors.New("Unable to parse min/max port value for NodePort range!") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
error strings should not be capitalized or end with punctuation or a newline
pkg/option/config.go
Outdated
return fmt.Errorf("Unable to parse max port value for NodePort range: %s", err.Error()) | ||
} | ||
if c.NodePortMax <= c.NodePortMin { | ||
return errors.New("NodePort range min port must be smaller than max port!") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
error strings should not be capitalized or end with punctuation or a newline
pkg/option/config.go
Outdated
case 0: | ||
log.Warning("NodePort range was set but is empty.") | ||
default: | ||
return errors.New("Unable to parse min/max port value for NodePort range!") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
error strings should not be capitalized or end with punctuation or a newline
pkg/option/config.go
Outdated
return fmt.Errorf("Unable to parse max port value for NodePort range: %s", err.Error()) | ||
} | ||
if c.NodePortMax <= c.NodePortMin { | ||
return errors.New("NodePort range min port must be smaller than max port!") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
error strings should not be capitalized or end with punctuation or a newline
test-me-please |
test-missed-k8s |
test-docs-please |
Scripts under contrib/go-mod don't provide any value to Cilium repository as the dependencies are properly managed by go modules. This commit removed all requires that are not necessary and left only the needed requires. After removing non-essential requires `go mod tidy && go mod vendor` were executed to re-create the vendor directory with the indirect dependencies resolved. Signed-off-by: André Martins <andre@cilium.io>
c51d6a7
to
0d5a193
Compare
test-me-please https://jenkins.cilium.io/job/Cilium-PR-Ginkgo-Tests-Validated/17373/ FQDN test |
test-me-please |
@aanm These changes look confusing, any idea why they were triggered here?
|
One more note: I kind of liked the instructions on top of |
@jrajahalme the
there are no more scripts. The instructions were updated in the dev documentation https://docs.cilium.io/en/latest/contributing/development/dev_setup/#add-update-a-golang-dependency TLDR to add/update a new dependency one simply needs to do:
|
Scripts under contrib/go-mod don't provide any value to Cilium
repository as the dependencies are properly managed by go modules.
This commit removed all requires that are not necessary and left only
the needed requires. After removing non-essential requires
go mod tidy && go mod vendor
were executed to re-create the vendor directory with theindirect dependencies resolved.
Signed-off-by: André Martins andre@cilium.io
This change is