gohugoio / hugo

The world’s fastest framework for building websites.
https://gohugo.io
Apache License 2.0
75.38k stars 7.49k forks source link

duplicate case godartsass.SassError in type switch #11709

Closed ilaotan closed 11 months ago

ilaotan commented 11 months ago

please help,I meet some problem:

C:\Users\xxxx>go get -u github.com/cosmtrek/air
# github.com/gohugoio/hugo/common/herrors
go\src\github.com\gohugoio\hugo\common\herrors\file_error.go:151:7: duplicate case godartsass.SassError in type switch
        go\src\github.com\gohugoio\hugo\common\herrors\file_error.go:149:7: previous case
go\src\github.com\gohugoio\hugo\common\herrors\file_error.go:393:7: duplicate case godartsass.SassError in type switch
        go\src\github.com\gohugoio\hugo\common\herrors\file_error.go:386:7: previous case

the source code is :

    switch v := e.cause.(type) {
    // Avoid repeating the file info in the error message.
    case godartsass.SassError:
        return v.Message
    case godartsassv1.SassError:
        return v.Message
jmooring commented 11 months ago

Please raise the issue with the project maintainers: https://github.com/cosmtrek/air

github-actions[bot] commented 10 months ago

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.