rules_hugo
rules_hugo copied to clipboard
Bazel build rules for hugo static website generator
https://github.com/stackb/rules_hugo/blob/master/hugo/internal/hugo_repository.bzl#L15-L21 os_arch = repository_ctx.attr.os_arch os_name = repository_ctx.os.name.lower() if os_name.startswith("mac os"): os_arch = "macOS-64bit" elif os_name.find("windows") != -1: os_arch = "Windows-64bit" else: os_arch = "Linux-64bit" The `os_arch` options in `hugo_repository()` no...
Also impoves some minor quality of life improvements: - Only infer `os_arch` if it isn't provided to `hugo_repository`. - Update default Hugo version to 0.122.0 (the most recent). TESTED=manual: Successfully...
Fixes two issues: - Verbose was being applied when quiet=True - Verbose was being applied using the deprecated `--verbose` flag, which has been changed to `--logLevel info` from Hugo 0.114.0...
Bazel is transitioning from `WORKSPACE` to `MODULE.bazel` through the use of `bzlmod`. It would be nice if this rule also supports the new change. * Create `MODULE.bazel` declaration * Tag...
Hugo wants to modify input files, generally this should be avoided. Pass in a couple flags to ask hugo to not modify inputs
I realize this sounds a bit like [the first issue on this repo](https://github.com/stackb/rules_hugo/issues/1), but I'm a bit unclear why `execution_requirements = {'no-sandbox'}` was [removed](https://github.com/stackb/rules_hugo/commit/5b198e053c9551219ba70c97a7ea6694108390ac#diff-2e74d1b13ce9b7645c011139fc5931fdL91). @gertvdijk could you please elaborate? I'm...
[These checks](https://github.com/stackb/rules_hugo/blob/master/hugo/internal/hugo_site.bzl#L50-L56) look for the rightmost location of specific directory names (`content`, `static`, etc), requiring the actual source repository have directories named that, despite the fact that the files are...
* `hugo_repository.sha256` has no default value(s), and thus is offloaded to the user * Because there is no map of `platform_archive_name:sha`, when a user specifies a sha, it is for...