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

Go: Stop using workspace. #12703

Merged
merged 1 commit into from
Jan 15, 2025
Merged

Conversation

rikatz
Copy link
Contributor

@rikatz rikatz commented Jan 14, 2025

What this PR does / why we need it:

Since we started to use go workspace, contribution workflow got worst and with no gain. The idea of go workspace would be more related to inter modules consumption (eg. controller vs kubewebhook certgen), which is not the fact on ingress-nginx.

As the person who implemented this, I understand this implementation was wrong and not suitable for Ingress NGINX.

This way, I am proposing to remove this feature, as it is not used on ingress-nginx

I recommend not cherry-picking this change, as it is not a bugfix!!

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • CVE Report (Scanner found CVE and adding report)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Documentation only
  • Other - Developer experience improvement

Which issue/s this PR fixes

How Has This Been Tested?

Just checked everything is still compiling as desired

Checklist:

  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I've read the CONTRIBUTION guide
  • I have added unit and/or e2e tests to cover my changes.
  • All new and existing tests passed.

@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Jan 14, 2025
@k8s-ci-robot k8s-ci-robot added needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one. needs-kind Indicates a PR lacks a `kind/foo` label and requires one. needs-priority size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Jan 14, 2025
Copy link

netlify bot commented Jan 14, 2025

Deploy Preview for kubernetes-ingress-nginx canceled.

Name Link
🔨 Latest commit 54342ec
🔍 Latest deploy log https://app.netlify.com/sites/kubernetes-ingress-nginx/deploys/6786b7c354616000082ed35c

@Gacko
Copy link
Member

Gacko commented Jan 15, 2025

Do you have any insights if and how tools like Dependabot might need to be adjusted to this change? Or is Dependabot not giving a sh** and just looking for go.mod anyway? Apart from that I really like the idea as the go.work.sum is often modified by tools like VS Code, even though it wouldn't by pure go CLI tooling.

@Gacko
Copy link
Member

Gacko commented Jan 15, 2025

One thought regarding "not cherry-picking": We are cherry-picking Dependabot PRs. I think these normally also affects the go.work.sum and therefore I'd be a bit afraid of not cherry-picking this as then there's still a go.work.sum on release branches but it's no longer being updated by Dependabot PRs.

@Gacko
Copy link
Member

Gacko commented Jan 15, 2025

/retitle Go: Stop using workspace.
/triage accepted
/kind cleanup
/priority backlog
/lgtm

@k8s-ci-robot k8s-ci-robot changed the title Stop using go workspace Go: Stop using workspace. Jan 15, 2025
@k8s-ci-robot k8s-ci-robot added triage/accepted Indicates an issue or PR is ready to be actively worked on. kind/cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt. priority/backlog Higher priority than priority/awaiting-more-evidence. and removed needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one. labels Jan 15, 2025
@k8s-ci-robot k8s-ci-robot added lgtm "Looks good to me", indicates that a PR is ready to be merged. and removed needs-kind Indicates a PR lacks a `kind/foo` label and requires one. needs-priority labels Jan 15, 2025
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: Gacko, rikatz

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 Jan 15, 2025
@k8s-ci-robot k8s-ci-robot merged commit 8111b07 into kubernetes:main Jan 15, 2025
33 checks passed
@Gacko
Copy link
Member

Gacko commented Jan 15, 2025

With my comments in mind, I'd be happy if it would be ok to cherry-pick these.

@rikatz
Copy link
Contributor Author

rikatz commented Jan 15, 2025

I wouldn't. I think as this is not really a bugfix, cherry picks should be kept for bug fixes only but you can try

@rikatz
Copy link
Contributor Author

rikatz commented Jan 15, 2025

About dependabot: it shouldn't matter. Iirc dependabot reads all go.mod from repo and doesn't really care about go.work

@Gacko
Copy link
Member

Gacko commented Jan 15, 2025

I wouldn't. I think as this is not really a bugfix, cherry picks should be kept for bug fixes only but you can try

That's true, but so are dependency bumps and other developer experience improvements (improvements to CI, GitHub Actions, Cloud Build and so on).

Technically you're right, there's not a lot added value in cherry-picking. But on the other hand it would make it easier to diff branches and as long it's not changing how our "product" works, aka. the API we provide, I'd always cherry-pick such cleanup and chores.

@Gacko
Copy link
Member

Gacko commented Jan 17, 2025

k, just realized a use case where it makes sense to have this synced: Go updates. The go.work contains a Go version and build is breaking/complaining if this isn't aligned to the modules. So bumping Go on main would always require manually bumping it in the go.work on branches where it still exists.

@Gacko
Copy link
Member

Gacko commented Jan 17, 2025

/cherry-pick release-1.12

@Gacko
Copy link
Member

Gacko commented Jan 17, 2025

/cherry-pick release-1.11

@k8s-infra-cherrypick-robot
Copy link
Contributor

@Gacko: new pull request created: #12712

In response to this:

/cherry-pick release-1.12

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

@k8s-infra-cherrypick-robot
Copy link
Contributor

@Gacko: new pull request created: #12713

In response to this:

/cherry-pick release-1.11

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

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. kind/cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt. lgtm "Looks good to me", indicates that a PR is ready to be merged. priority/backlog Higher priority than priority/awaiting-more-evidence. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. triage/accepted Indicates an issue or PR is ready to be actively worked on.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants