Skip to content

Commit

Permalink
Pushing config_file declaration back to the top.
Browse files Browse the repository at this point in the history
  • Loading branch information
rrmcguinness committed Aug 29, 2022
1 parent b1c73d7 commit 37e3884
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions hugo/internal/hugo_site.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,9 @@ def _hugo_site_impl(ctx):
# Copy the config file into place
# Unless a config dir is specified


config_file = ctx.actions.declare_file(ctx.file.config.basename)

if ctx.files.configDir != None and len(ctx.files.configDir) == 0:
config_file = ctx.actions.declare_file(ctx.file.config.basename)
ctx.actions.run_shell(
inputs = [ctx.file.config],
outputs = [config_file],
Expand Down

0 comments on commit 37e3884

Please sign in to comment.