Skip to content

Commit

Permalink
Merge pull request #7 from ProdriveTechnologies/bugfix/bazel_pandoc_b…
Browse files Browse the repository at this point in the history
…uild

Bugfix/bazel pandoc build
  • Loading branch information
patbro authored Nov 13, 2019
2 parents cb39f15 + f19c71b commit 5994c0d
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion BUILD.bazel
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
load(":toolchain.bzl", "pandoc_toolchain")
load(":pandoc.bzl", "pandoc", "PANDOC_FORMATS")
load(":pandoc.bzl", "PANDOC_EXTENSIONS", "pandoc")

exports_files(["README.md"])

Expand Down
2 changes: 2 additions & 0 deletions WORKSPACE
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
workspace(name = "bazel_pandoc")

load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")

http_archive(
name = "bazel_toolchains",
sha256 = "4329663fe6c523425ad4d3c989a8ac026b04e1acedeceb56aa4b190fa7f3973c",
Expand Down
5 changes: 4 additions & 1 deletion pandoc.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,10 @@ def _pandoc_impl(ctx):
ctx.outputs.out.path,
ctx.files.src[0].path,
],
inputs = toolchain.pandoc.files + ctx.files.src,
inputs = depset(
direct = ctx.files.src,
transitive = [toolchain.pandoc.files],
),
outputs = [ctx.outputs.out],
)

Expand Down

0 comments on commit 5994c0d

Please sign in to comment.