feat: move module path to git.unbound.se
The module is now git.unbound.se/shiny/presenter. The API is unchanged. Tags up to v0.3.7 declare gitea.unbound.se/shiny/presenter and stay resolvable through that alias. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Kko4x3MYEcWMMdkx12WpBa
This commit is contained in:
1 parent
7532ef4582
commit
7b879c3fc0
5 files changed
+5
-5
No files matched your search
@@ -23,7 +23,7 @@ repos:
|
||||
- id: go-imports
|
||||
args:
|
||||
- -local
|
||||
- gitea.unbound.se/shiny/presenter
|
||||
- git.unbound.se/shiny/presenter
|
||||
- repo: https://github.com/lietu/go-pre-commit
|
||||
rev: v1.0.0
|
||||
hooks:
|
||||
|
||||
@@ -18,7 +18,7 @@ Provides a standardized GraphQL error presenter that handles coded errors across
|
||||
### Usage
|
||||
|
||||
```go
|
||||
import "gitea.unbound.se/shiny/presenter"
|
||||
import "git.unbound.se/shiny/presenter"
|
||||
|
||||
// Create error presenter with valid codes and entities
|
||||
errorPresenter := presenter.New(logger, validCodes, validEntities, internalErrorCode)
|
||||
|
||||
+1
-1
@@ -7,7 +7,7 @@ import (
|
||||
|
||||
"github.com/stretchr/testify/require"
|
||||
|
||||
"gitea.unbound.se/shiny/presenter"
|
||||
"git.unbound.se/shiny/presenter"
|
||||
)
|
||||
|
||||
func TestCodedError_ErrorIs(t *testing.T) {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
module gitea.unbound.se/shiny/presenter
|
||||
module git.unbound.se/shiny/presenter
|
||||
|
||||
go 1.26
|
||||
|
||||
|
||||
+1
-1
@@ -11,7 +11,7 @@ import (
|
||||
"github.com/stretchr/testify/assert"
|
||||
"github.com/vektah/gqlparser/v2/gqlerror"
|
||||
|
||||
"gitea.unbound.se/shiny/presenter"
|
||||
"git.unbound.se/shiny/presenter"
|
||||
)
|
||||
|
||||
func Test_globalErrorPresenter(t *testing.T) {
|
||||
|
||||
Reference in new issue
Block a user