fix: update module path from gitlab to git.unbound.se
Change the module path in various files to reflect the new repository location on git.unbound.se. Update imports in CLAUDE.md, error_test.go, and presenter_test.go to ensure compatibility with the updated module path. Remove outdated CI configuration in .pre-commit-config.yaml to streamline the setup. This enhances consistency and aligns the project with its new hosting platform.
This commit is contained in:
@@ -10,13 +10,6 @@ repos:
|
|||||||
args:
|
args:
|
||||||
- --allow-multiple-documents
|
- --allow-multiple-documents
|
||||||
- id: check-added-large-files
|
- id: check-added-large-files
|
||||||
- repo: https://gitlab.com/devopshq/gitlab-ci-linter
|
|
||||||
rev: v1.0.6
|
|
||||||
hooks:
|
|
||||||
- id: gitlab-ci-linter
|
|
||||||
args:
|
|
||||||
- --project
|
|
||||||
- unboundsoftware/shiny/presenter
|
|
||||||
- repo: https://github.com/alessandrojcm/commitlint-pre-commit-hook
|
- repo: https://github.com/alessandrojcm/commitlint-pre-commit-hook
|
||||||
rev: v9.23.0
|
rev: v9.23.0
|
||||||
hooks:
|
hooks:
|
||||||
@@ -30,7 +23,7 @@ repos:
|
|||||||
- id: go-imports
|
- id: go-imports
|
||||||
args:
|
args:
|
||||||
- -local
|
- -local
|
||||||
- gitlab.com/unboundsoftware/shiny/presenter
|
- git.unbound.se/shiny/presenter
|
||||||
- repo: https://github.com/lietu/go-pre-commit
|
- repo: https://github.com/lietu/go-pre-commit
|
||||||
rev: v1.0.0
|
rev: v1.0.0
|
||||||
hooks:
|
hooks:
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ Provides a standardized GraphQL error presenter that handles coded errors across
|
|||||||
### Usage
|
### Usage
|
||||||
|
|
||||||
```go
|
```go
|
||||||
import "gitlab.com/unboundsoftware/shiny/presenter"
|
import "git.unbound.se/shiny/presenter"
|
||||||
|
|
||||||
// Create error presenter with valid codes and entities
|
// Create error presenter with valid codes and entities
|
||||||
errorPresenter := presenter.New(logger, validCodes, validEntities, internalErrorCode)
|
errorPresenter := presenter.New(logger, validCodes, validEntities, internalErrorCode)
|
||||||
|
|||||||
@@ -1,6 +1,3 @@
|
|||||||
# Shiny global error presenter
|
# Shiny global error presenter
|
||||||
|
|
||||||
GraphQL global error presenter handling coded errors.
|
GraphQL global error presenter handling coded errors.
|
||||||
|
|
||||||
[](https://gitlab.com/unboundsoftware/shiny/presenter/commits/main)
|
|
||||||
[](https://codecov.io/gl/unboundsoftware:shiny/presenter)
|
|
||||||
|
|||||||
+1
-1
@@ -7,7 +7,7 @@ import (
|
|||||||
|
|
||||||
"github.com/stretchr/testify/require"
|
"github.com/stretchr/testify/require"
|
||||||
|
|
||||||
"gitlab.com/unboundsoftware/shiny/presenter"
|
"git.unbound.se/shiny/presenter"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestCodedError_ErrorIs(t *testing.T) {
|
func TestCodedError_ErrorIs(t *testing.T) {
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
module gitlab.com/unboundsoftware/shiny/presenter
|
module git.unbound.se/shiny/presenter
|
||||||
|
|
||||||
go 1.24.1
|
go 1.24.1
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -11,7 +11,7 @@ import (
|
|||||||
"github.com/stretchr/testify/assert"
|
"github.com/stretchr/testify/assert"
|
||||||
"github.com/vektah/gqlparser/v2/gqlerror"
|
"github.com/vektah/gqlparser/v2/gqlerror"
|
||||||
|
|
||||||
"gitlab.com/unboundsoftware/shiny/presenter"
|
"git.unbound.se/shiny/presenter"
|
||||||
)
|
)
|
||||||
|
|
||||||
func Test_globalErrorPresenter(t *testing.T) {
|
func Test_globalErrorPresenter(t *testing.T) {
|
||||||
|
|||||||
Reference in New Issue
Block a user