diff options
Diffstat (limited to 'tpl/internal/go_templates/testenv/testenv_notunix.go')
-rw-r--r-- | tpl/internal/go_templates/testenv/testenv_notunix.go | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tpl/internal/go_templates/testenv/testenv_notunix.go b/tpl/internal/go_templates/testenv/testenv_notunix.go index 9d55f6258..916f18153 100644 --- a/tpl/internal/go_templates/testenv/testenv_notunix.go +++ b/tpl/internal/go_templates/testenv/testenv_notunix.go @@ -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) } |