Skip to content

feat: [#823] register service providers to bootstrap/providers.go#25

Merged
hwbrzzl merged 1 commit intomasterfrom
bowen/#823
Dec 5, 2025
Merged

feat: [#823] register service providers to bootstrap/providers.go#25
hwbrzzl merged 1 commit intomasterfrom
bowen/#823

Conversation

@hwbrzzl
Copy link
Contributor

@hwbrzzl hwbrzzl commented Dec 5, 2025

📑 Description

Closes goravel/goravel#823

This pull request updates dependencies and refactors the setup logic for the SQLite integration to support both standard and bootstrap setups in Goravel. The changes improve compatibility with newer versions and make the setup/uninstall process more flexible based on the environment.

Dependency updates:

  • Updated Go version to 1.24.0 and refreshed many dependencies to their latest versions, including goravel/framework, testify, gorm, and several indirect dependencies for improved stability and compatibility.

Setup logic improvements:

  • Refactored setup/setup.go to use conditional logic (modify.When) for installing and uninstalling the SQLite service provider, supporting both standard and bootstrap setups by detecting the environment with env.IsBootstrapSetup().
  • Added import of github.com/goravel/framework/support/env to facilitate environment-based logic in the setup process.
  • Improved configuration matching by extracting config keys to variables (databaseConnectionsConfig, databaseConfig) for better maintainability and clarity.
image

✅ Checks

  • Added test cases for my code

@hwbrzzl hwbrzzl requested a review from a team as a code owner December 5, 2025 09:53
Copilot AI review requested due to automatic review settings December 5, 2025 09:53
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 enhances the Goravel SQLite package to support both standard and bootstrap setup patterns by introducing conditional service provider registration. The changes enable the package to detect the application environment and register the SQLite service provider in the appropriate location (either app.go or bootstrap/providers.go).

Key changes:

  • Added environment-aware conditional logic using env.IsBootstrapSetup() to support both standard and bootstrap setups
  • Refactored config variable from package-level to function-level scope for better encapsulation
  • Updated Go version to 1.24.0 and refreshed dependencies to latest stable versions

Reviewed changes

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

File Description
setup/setup.go Implemented conditional service provider registration logic with modify.When() to support both standard (app.go) and bootstrap (bootstrap/providers.go) setups; refactored config variables for better maintainability
go.mod Updated Go version to 1.24.0 and upgraded core dependencies including goravel/framework, testify, gorm, and various indirect dependencies
go.sum Updated checksums to reflect all dependency changes in go.mod, adding new transitive dependencies and updating existing ones

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

@hwbrzzl hwbrzzl merged commit ac96a10 into master Dec 5, 2025
11 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.

Sub-packages should register service providers to bootstrap/providers.go

2 participants