Skip to content

chore: upgrade v1.17#26

Merged
hwbrzzl merged 1 commit intomasterfrom
bowen/upgrade-v1.17-1
Feb 2, 2026
Merged

chore: upgrade v1.17#26
hwbrzzl merged 1 commit intomasterfrom
bowen/upgrade-v1.17-1

Conversation

@hwbrzzl
Copy link
Contributor

@hwbrzzl hwbrzzl commented Feb 2, 2026

Greptile Overview

Greptile Summary

This PR upgrades the goravel/sqlite package to work with goravel/framework v1.17 by updating dependencies and migrating to the new provider registration API.

Key Changes:

  • Updated github.com/goravel/framework dependency to v1.16.1-0.20260202061217-60e5444dde33
  • Migrated from deprecated modify.AddProviderApply/modify.RemoveProviderApply to new modify.RegisterProvider/modify.UnregisterProvider APIs in setup/setup.go
  • Removed several deprecated transitive dependencies (github.com/cespare/xxhash/v2, github.com/sirupsen/logrus, OpenTelemetry packages)
  • Updated various golang.org/x and google.golang.org dependencies to newer versions

Impact:
The API change from AddProviderApply to RegisterProvider aligns with the framework's v1.17 bootstrap setup improvements, providing a cleaner interface for service provider registration.

Confidence Score: 5/5

  • This PR is safe to merge - it's a standard dependency upgrade with straightforward API migration
  • The changes are minimal, well-scoped, and follow a clear pattern: updating the framework dependency and adopting the new provider registration API. The API migration is a simple rename with identical functionality.
  • No files require special attention

Important Files Changed

Filename Overview
go.mod Updated goravel/framework dependency and bumped several transitive dependency versions
go.sum Checksums updated to reflect dependency changes in go.mod
setup/setup.go Migrated from deprecated AddProviderApply/RemoveProviderApply to RegisterProvider/UnregisterProvider APIs

Sequence Diagram

sequenceDiagram
    participant User
    participant Setup as packages.Setup
    participant Modify as modify package
    participant AppConfig as app.go/providers.go
    participant DBConfig as database.go

    User->>Setup: Run setup/setup.go
    Setup->>Setup: Parse os.Args
    
    alt Install Mode
        Setup->>Modify: Check IsBootstrapSetup()
        alt Bootstrap Setup (v1.17+)
            Modify->>AppConfig: RegisterProvider(moduleImport, ServiceProvider)
        else Legacy Setup
            Modify->>AppConfig: Add import & Register to app.go
        end
        Modify->>DBConfig: Add sqlite connection config
        Modify->>DBConfig: Set default database to "sqlite"
    else Uninstall Mode
        Setup->>Modify: Check IsBootstrapSetup()
        alt Bootstrap Setup (v1.17+)
            Modify->>AppConfig: UnregisterProvider(moduleImport, ServiceProvider)
        else Legacy Setup
            Modify->>AppConfig: Unregister from app.go & remove import
        end
        Modify->>DBConfig: Remove sqlite connection config
        Modify->>DBConfig: Clear default database
    end
    
    Setup->>User: Complete
Loading

@hwbrzzl hwbrzzl requested a review from a team as a code owner February 2, 2026 06:39
Copilot AI review requested due to automatic review settings February 2, 2026 06:39
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR upgrades the goravel/framework dependency to v1.17 and updates various related dependencies. The changes primarily involve renaming provider registration functions to align with the new framework API and updating dependency versions.

Changes:

  • Renamed AddProviderApply to RegisterProvider and RemoveProviderApply to UnregisterProvider in setup code
  • Updated goravel/framework from v1.16.1-0.20251216090700 to v1.16.1-0.20260202061217
  • Upgraded multiple dependencies including golang.org/x packages, urfave/cli, and google.golang.org/grpc

Reviewed changes

Copilot reviewed 2 out of 3 changed files in this pull request and generated no comments.

File Description
setup/setup.go Updates provider registration function calls to use new framework API names (RegisterProvider/UnregisterProvider)
go.mod Updates framework version and multiple dependency versions, removes unused dependencies
go.sum Reflects dependency version updates with corresponding checksums

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@hwbrzzl hwbrzzl merged commit f364d07 into master Feb 2, 2026
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants