Skip to content

Update go module to v2 #3660

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

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

Update go module to v2 #3660

wants to merge 1 commit into from

Conversation

sjberman
Copy link
Collaborator

Problem: With the release of v2.0 of NGINX Gateway Fabric, we need to update the go module version to include /v2, per Go module import standards. Otherwise, NGF cannot be imported past v1.

Solution: Update the module version and all imports to v2.

Checklist

Before creating a PR, run through this checklist and mark each as complete.

  • I have read the CONTRIBUTING doc
  • I have added tests that prove my fix is effective or that my feature works
  • I have checked that all unit tests pass after adding my changes
  • I have updated necessary documentation
  • I have rebased my branch onto main
  • I will ensure my PR is targeting the main branch and pulling from my branch from my own fork

Release notes

If this PR introduces a change that affects users and needs to be mentioned in the release notes,
please add a brief note that summarizes the change.

Update Go module to v2

@github-actions github-actions bot added dependencies Pull requests that update a dependency file chore Pull requests for routine tasks labels Jul 25, 2025
Problem: With the release of v2.0 of NGINX Gateway Fabric, we need to update the go module version to include `/v2`, per Go module import standards. Otherwise, NGF cannot be imported past v1.

Solution: Update the module version and all imports to v2.
@sjberman sjberman force-pushed the chore/update-module branch from 6d1f5d2 to e580cff Compare July 25, 2025 16:43
Copy link

codecov bot commented Jul 25, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 87.06%. Comparing base (9308f2c) to head (e580cff).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3660      +/-   ##
==========================================
- Coverage   87.06%   87.06%   -0.01%     
==========================================
  Files         127      127              
  Lines       15580    15580              
  Branches       62       62              
==========================================
- Hits        13565    13564       -1     
- Misses       1857     1858       +1     
  Partials      158      158              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@sjberman sjberman marked this pull request as ready for review July 25, 2025 17:09
@sjberman sjberman requested a review from a team as a code owner July 25, 2025 17:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
chore Pull requests for routine tasks dependencies Pull requests that update a dependency file release-notes
Projects
Status: 🆕 New
Development

Successfully merging this pull request may close these issues.

3 participants