diff --git a/external/hugo/wanix_vendor.patch b/external/hugo/wanix_vendor.patch index 4eff6e9..683815b 100644 --- a/external/hugo/wanix_vendor.patch +++ b/external/hugo/wanix_vendor.patch @@ -1,12 +1,16 @@ diff --git a/commands/commandeer.go b/commands/commandeer.go -index 1e5928ff9..c1e1421d0 100644 +index 1e5928ff9..897a76d57 100644 --- a/commands/commandeer.go +++ b/commands/commandeer.go -@@ -542,7 +542,7 @@ func applyLocalFlagsBuild(cmd *cobra.Command, r *rootCommand) { +@@ -540,9 +540,9 @@ func applyLocalFlagsBuild(cmd *cobra.Command, r *rootCommand) { + cmd.Flags().Bool("templateMetrics", false, "display metrics about template executions") + cmd.Flags().Bool("templateMetricsHints", false, "calculate some improvement hints when combined with --templateMetrics") cmd.Flags().BoolVar(&r.forceSyncStatic, "forceSyncStatic", false, "copy all files when static is changed.") - cmd.Flags().BoolP("noTimes", "", false, "don't sync modification time of files") - cmd.Flags().BoolP("noChmod", "", false, "don't sync permission mode of files") +- cmd.Flags().BoolP("noTimes", "", false, "don't sync modification time of files") +- cmd.Flags().BoolP("noChmod", "", false, "don't sync permission mode of files") - cmd.Flags().BoolP("noBuildLock", "", false, "don't create .hugo_build.lock file") ++ cmd.Flags().BoolP("noTimes", "", true, "don't sync modification time of files") ++ cmd.Flags().BoolP("noChmod", "", true, "don't sync permission mode of files") + cmd.Flags().BoolP("noBuildLock", "", true, "don't create .hugo_build.lock file") cmd.Flags().BoolP("printI18nWarnings", "", false, "print missing translations") cmd.Flags().BoolP("printPathWarnings", "", false, "print warnings on duplicate target paths etc.") diff --git a/kernel/fs/js.go b/kernel/fs/js.go index f453611..45b407f 100644 --- a/kernel/fs/js.go +++ b/kernel/fs/js.go @@ -163,7 +163,7 @@ func (s *Service) read(this js.Value, args []js.Value) any { } if rs, ok := f.File.(io.ReadSeeker); ok && !pos.IsNull() { - _, err := rs.Seek(int64(pos.Int()), 0) + _, err := rs.Seek(int64(pos.Int()), io.SeekStart) if err != nil { cb.Invoke(jsutil.ToJSError(err), 0) return