mirror of
https://github.com/gohugoio/hugo.git
synced 2025-09-08 23:40:40 +02:00
Allow getJSON errors to be ignored
This change is mostly motivated to get a more stable CI build (we're building the Hugo site there, with Instagram and Twitter shortcodes sometimes failing). Fixes #7866
This commit is contained in:
@@ -28,14 +28,14 @@ var (
|
||||
)
|
||||
|
||||
// NewNoSymlinkFs creates a new filesystem that prevents symlinks.
|
||||
func NewNoSymlinkFs(fs afero.Fs, logger *loggers.Logger, allowFiles bool) afero.Fs {
|
||||
func NewNoSymlinkFs(fs afero.Fs, logger loggers.Logger, allowFiles bool) afero.Fs {
|
||||
return &noSymlinkFs{Fs: fs, logger: logger, allowFiles: allowFiles}
|
||||
}
|
||||
|
||||
// noSymlinkFs is a filesystem that prevents symlinking.
|
||||
type noSymlinkFs struct {
|
||||
allowFiles bool // block dirs only
|
||||
logger *loggers.Logger
|
||||
logger loggers.Logger
|
||||
afero.Fs
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user