mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-26 22:04:32 +02:00
Pull in the latest code from Go's template packages (#11771)
Fixes #10707 Fixes #11507
This commit is contained in:
committed by
GitHub
parent
14d85ec136
commit
9f978d387f
@@ -7,6 +7,8 @@
|
||||
package testenv
|
||||
|
||||
import (
|
||||
"errors"
|
||||
"io/fs"
|
||||
"os"
|
||||
)
|
||||
|
||||
@@ -15,6 +17,5 @@ import (
|
||||
var Sigquit = os.Kill
|
||||
|
||||
func syscallIsNotSupported(err error) bool {
|
||||
// Removed by Hugo (not supported in Go 1.20).
|
||||
return false
|
||||
return errors.Is(err, fs.ErrPermission)
|
||||
}
|
||||
|
Reference in New Issue
Block a user