Skip to content

Commit

Permalink
separate go modules
Browse files Browse the repository at this point in the history
  • Loading branch information
Greg Weber committed Jan 9, 2025
1 parent 78ff78f commit c764a9d
Show file tree
Hide file tree
Showing 13 changed files with 19 additions and 478 deletions.
2 changes: 1 addition & 1 deletion errors.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ import (

"github.com/gregwebs/errors/errwrap"

Check failure on line 30 in errors.go

View workflow job for this annotation

GitHub Actions / build

no required module provides package github.com/gregwebs/errors/errwrap; to add it:

Check failure on line 30 in errors.go

View workflow job for this annotation

GitHub Actions / govulncheck

no required module provides package github.com/gregwebs/errors/errwrap; to add it:

Check failure on line 30 in errors.go

View workflow job for this annotation

GitHub Actions / govulncheck

could not import github.com/gregwebs/errors/errwrap (invalid package name: "")

Check failure on line 30 in errors.go

View workflow job for this annotation

GitHub Actions / govulncheck

no required module provides package github.com/gregwebs/errors/errwrap; to add it:

Check failure on line 30 in errors.go

View workflow job for this annotation

GitHub Actions / govulncheck

could not import github.com/gregwebs/errors/errwrap (invalid package name: "")

Check failure on line 30 in errors.go

View workflow job for this annotation

GitHub Actions / build

no required module provides package github.com/gregwebs/errors/errwrap; to add it:

Check failure on line 30 in errors.go

View workflow job for this annotation

GitHub Actions / govulncheck

no required module provides package github.com/gregwebs/errors/errwrap; to add it:

Check failure on line 30 in errors.go

View workflow job for this annotation

GitHub Actions / govulncheck

could not import github.com/gregwebs/errors/errwrap (invalid package name: "")

Check failure on line 30 in errors.go

View workflow job for this annotation

GitHub Actions / build

no required module provides package github.com/gregwebs/errors/errwrap; to add it:
"github.com/gregwebs/errors/slogerr"

Check failure on line 31 in errors.go

View workflow job for this annotation

GitHub Actions / build

no required module provides package github.com/gregwebs/errors/slogerr; to add it:

Check failure on line 31 in errors.go

View workflow job for this annotation

GitHub Actions / govulncheck

no required module provides package github.com/gregwebs/errors/slogerr; to add it:

Check failure on line 31 in errors.go

View workflow job for this annotation

GitHub Actions / govulncheck

could not import github.com/gregwebs/errors/slogerr (invalid package name: "")

Check failure on line 31 in errors.go

View workflow job for this annotation

GitHub Actions / govulncheck

no required module provides package github.com/gregwebs/errors/slogerr; to add it:

Check failure on line 31 in errors.go

View workflow job for this annotation

GitHub Actions / govulncheck

could not import github.com/gregwebs/errors/slogerr (invalid package name: "")

Check failure on line 31 in errors.go

View workflow job for this annotation

GitHub Actions / build

no required module provides package github.com/gregwebs/errors/slogerr; to add it:

Check failure on line 31 in errors.go

View workflow job for this annotation

GitHub Actions / govulncheck

no required module provides package github.com/gregwebs/errors/slogerr; to add it:

Check failure on line 31 in errors.go

View workflow job for this annotation

GitHub Actions / govulncheck

could not import github.com/gregwebs/errors/slogerr (invalid package name: "")

Check failure on line 31 in errors.go

View workflow job for this annotation

GitHub Actions / build

no required module provides package github.com/gregwebs/errors/slogerr; to add it:
"github.com/gregwebs/errors/stackfmt"
"github.com/gregwebs/stackfmt"
)

// GetStackTracer will return the first StackTracer in the causer chain.
Expand Down
2 changes: 1 addition & 1 deletion errstack.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
stderrors "errors"
"fmt"

"github.com/gregwebs/errors/stackfmt"
"github.com/gregwebs/stackfmt"
)

// New returns an error with the supplied message.
Expand Down
3 changes: 3 additions & 0 deletions errwrap/go.mod
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module github.com/gregwebs/errors/errwrap

go 1.23.3
2 changes: 1 addition & 1 deletion example_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"strings"

"github.com/gregwebs/errors"
"github.com/gregwebs/errors/stackfmt"
"github.com/gregwebs/stackfmt"
)

func ExampleNew() {
Expand Down
4 changes: 3 additions & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
module github.com/gregwebs/errors

go 1.23
go 1.23.3

require github.com/gregwebs/stackfmt v0.0.0-20250109232346-61b11c0ff204 // indirect
2 changes: 2 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
github.com/gregwebs/stackfmt v0.0.0-20250109232346-61b11c0ff204 h1:h4p6a7+y8j1hAQZooo/NUfOPUj1LKCr9oPPkIUtIYbI=
github.com/gregwebs/stackfmt v0.0.0-20250109232346-61b11c0ff204/go.mod h1:MQWvus3s9juULflTEiFIllieKiz7AnX7i4HWyPOs2nQ=
5 changes: 5 additions & 0 deletions slogerr/go.mod
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
module github.com/gregwebs/errors/slogerr

go 1.23.3

require github.com/gregwebs/stackfmt v0.0.0-20250109232346-61b11c0ff204
2 changes: 2 additions & 0 deletions slogerr/go.sum
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
github.com/gregwebs/stackfmt v0.0.0-20250109232346-61b11c0ff204 h1:h4p6a7+y8j1hAQZooo/NUfOPUj1LKCr9oPPkIUtIYbI=
github.com/gregwebs/stackfmt v0.0.0-20250109232346-61b11c0ff204/go.mod h1:MQWvus3s9juULflTEiFIllieKiz7AnX7i4HWyPOs2nQ=
2 changes: 1 addition & 1 deletion slogerr/structured.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (
"strings"
"time"

"github.com/gregwebs/errors/stackfmt"
"github.com/gregwebs/stackfmt"
)

// HasSlogRecord is used to retrieve an slog.Record.
Expand Down
126 changes: 0 additions & 126 deletions stackfmt/frame_test.go

This file was deleted.

54 changes: 0 additions & 54 deletions stackfmt/help_test.go

This file was deleted.

Loading

0 comments on commit c764a9d

Please sign in to comment.