๐ [Bug]: Draft new release version for template as well
itsrcu opened this issue ยท 0 comments
itsrcu commented
Bug Description
The template package itself is only on v1.8.1, and because there is no new drafted version for it, it doesn't contain the new interfaces required by the template engines, thus giving a new error message:
github.com/gofiber/template/html/v2
# github.com/gofiber/template/html/v2
Error: /Users/runner/go/pkg/mod/github.com/gofiber/template/html/v2@v2.0.3/html.go:19:7: undefined: core.Engine
Error: /Users/runner/go/pkg/mod/github.com/gofiber/template/html/v2@v2.0.3/html.go:27:16: undefined: core.Engine
Error: /Users/runner/go/pkg/mod/github.com/gofiber/template/html/v2@v2.0.3/html.go:36:9: engine.AddFunc undefined (type *Engine has no field or method AddFunc)
Error: /Users/runner/go/pkg/mod/github.com/gofiber/template/html/v2@v2.0.3/html.go:36:24: engine.LayoutName undefined (type *Engine has no field or method LayoutName)
Error: /Users/runner/go/pkg/mod/github.com/gofiber/template/html/v2@v2.0.3/html.go:45:16: undefined: core.Engine
Error: /Users/runner/go/pkg/mod/github.com/gofiber/template/html/v2@v2.0.3/html.go:55:9: engine.AddFunc undefined (type *Engine has no field or method AddFunc)
Error: /Users/runner/go/pkg/mod/github.com/gofiber/template/html/v2@v2.0.3/html.go:55:24: engine.LayoutName undefined (type *Engine has no field or method LayoutName)
Error: /Users/runner/go/pkg/mod/github.com/gofiber/template/html/v2@v2.0.3/html.go:63:7: e.Loaded undefined (type *Engine has no field or method Loaded)
Error: /Users/runner/go/pkg/mod/github.com/gofiber/template/html/v2@v2.0.3/html.go:67:4: e.Mutex undefined (type *Engine has no field or method Mutex)
Error: /Users/runner/go/pkg/mod/github.com/gofiber/template/html/v2@v2.0.3/html.go:68:10: e.Mutex undefined (type *Engine has no field or method Mutex)
Error: /Users/runner/go/pkg/mod/github.com/gofiber/template/html/v2@v2.0.3/html.go:68:10: too many errors
If it does get updated as well, (eg to v1.9.1 or v2.0.0) then each template engine needs to be updated (again), and then it should finally work (unless the replace github.com/gofiber/template => ../.
will cause any issues?)
How to Reproduce
See above
Expected Behavior
See above
Template package Version
v2.0.3
Code Snippet (optional)
No response
Checklist:
- I agree to follow Fiber's Code of Conduct.
- I have checked for existing issues that describe my problem prior to opening this one.
- I understand that improperly formatted bug reports may be closed without explanation.