Skip to content

Commit

Permalink
Merge pull request #76 from alecsammon/upgrade_owl_to_0.4.0
Browse files Browse the repository at this point in the history
Upgrade to ggicci/owl 0.4.0 and required go version from 1.19 to 1.20
  • Loading branch information
ggicci authored Oct 8, 2023
2 parents f193d55 + 0f30fbd commit a432745
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: "1.19"
go-version: "1.20"

- name: Test and generate coverage report
run: make test/cover
Expand Down
2 changes: 1 addition & 1 deletion directive.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ func RegisterDirectiveExecutor(name string, exe DirectiveExecutor) {
// on duplicate names.
func ReplaceDirectiveExecutor(name string, exe DirectiveExecutor) {
panicOnReservedExecutorName(name)
owl.ReplaceDirectiveExecutor(name, exe)
owl.RegisterDirectiveExecutor(name, exe, true)
}

func panicOnReservedExecutorName(name string) {
Expand Down
4 changes: 2 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
module github.com/ggicci/httpin

go 1.19
go 1.20

require (
github.com/ggicci/owl v0.1.7
github.com/ggicci/owl v0.4.0
github.com/go-chi/chi/v5 v5.0.8
github.com/gorilla/mux v1.8.0
github.com/justinas/alice v1.2.0
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/ggicci/owl v0.1.7 h1:OWdov5RaWxNwbNMoYyeiVV2VFMP9C1XTIMdtgnhncxg=
github.com/ggicci/owl v0.1.7/go.mod h1:FLuwmWWQC1MnhyDhT9G3/NTOyCMnojzd6oAriRg4Vbw=
github.com/ggicci/owl v0.4.0 h1:1cwRlynLe6P5ylLyjNWtOP5qVO1bYUmziPYVbOphGHQ=
github.com/ggicci/owl v0.4.0/go.mod h1:TRPWshRwYej6uES//YW5aNgLB370URwyta1Ytfs7KXs=
github.com/go-chi/chi/v5 v5.0.8 h1:lD+NLqFcAi1ovnVZpsnObHGW4xb4J8lNmoYVfECH1Y0=
github.com/go-chi/chi/v5 v5.0.8/go.mod h1:DslCQbL2OYiznFReuXYUmQ2hGd1aDpCnlMNITLSKoi8=
github.com/gorilla/mux v1.8.0 h1:i40aqfkR1h2SlN9hojwV5ZA91wcXFOvkdNIeFDP5koI=
Expand Down

0 comments on commit a432745

Please sign in to comment.