Commits on Source 3

  • Florian Forster's avatar
    fix: enable automatic import path updates for Go major version upgrades · 251e0fa1
    Florian Forster authored
    Renovate MRs for Go major version package upgrades were broken because they
    only updated the go.mod file with the new package version, leaving the old
    package path in place. This meant:
    
    1. Import statements throughout the codebase were not updated
    2. `go.mod` contained both old and new package paths
    3. `golangci-lint` would run `go mod tidy` and find differences
    4. CI would fail, making the MR unmergeable without manual intervention
    
    Add `gomodUpdateImportPaths` to the `postUpdateOptions` configuration. This
    enables Renovate to use a third-party tool
    (`github.com/marwan-at-work/mod/cmd/mod`) to automatically migrate import paths
    within application code during major Go package upgrades.
    
    With this change, Renovate will now:
    
    - Update the `go.mod` file with the new package version
    - Automatically update all import statements to use the new package path
    - Run `go mod tidy` to clean up the module file
    - Potentially produce MRs that pass CI without manual code changes
    
    This change only handles import path migrations. The following scenarios
    still require manual intervention:
    
    1. API breaking changes: If the upgraded package has breaking changes to the
       API used by the target repository (e.g., renamed functions, changed
       signatures), those changes must be made manually in the application code.
    
    2. Behavior changes: If the package behavior changed in ways that affect
       application logic, manual updates may be needed.
    
    3. Deprecated features: If the application uses deprecated features that
       were removed in the major version, manual refactoring is required.
    
    However, for upgrades where the package API surface remains compatible
    or only has additive changes, the MRs should now be fully mergeable
    without human intervention.
    251e0fa1
  • Florian Forster's avatar
    Merge branch 'fforster/go-major' into 'main' · 4822ecd2
    Florian Forster authored
    fix(Renovate): enable automatic import path updates for Go major version upgrades
    
    See merge request !1341
    4822ecd2
  • semantic-release-bot's avatar
    chore(release): 3.8.3 · 90a10018
    semantic-release-bot authored
    ## [3.8.3](https://gitlab.com/gitlab-com/gl-infra/common-ci-tasks/-/compare/...) (2026-03-10)
    
    ### Fixes
    
    * enable automatic import path updates for Go major version upgrades ([251e0fa1](251e0fa1))
    90a10018
Loading
Loading