From 64ad0973d290f5037a94772c7f55836aea579ee1 Mon Sep 17 00:00:00 2001 From: Joel Jeske Date: Mon, 15 Aug 2022 11:17:19 -0500 Subject: [PATCH] Ask hugo not to modify input files --- hugo/internal/hugo_site.bzl | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/hugo/internal/hugo_site.bzl b/hugo/internal/hugo_site.bzl index 33a82a8..465ecf7 100644 --- a/hugo/internal/hugo_site.bzl +++ b/hugo/internal/hugo_site.bzl @@ -96,6 +96,11 @@ def _hugo_site_impl(ctx): config_file.dirname, "--destination", ctx.label.name, + # Hugo wants to modify the static input files for its own bookkeeping + # but of course Bazel does not want input files to be changed. This breaks + # in some sandboxes like RBE + "--noTimes", + "--noChmod", ] if ctx.attr.quiet: