Skip to content

Commit

Permalink
Fix segment '.' not permitted
Browse files Browse the repository at this point in the history
Bazel does not allow paths in `glob` to start with `./`. This change
replaces occurrences of `./foo/bar` by `foo/bar`.
  • Loading branch information
aherrmann committed Dec 17, 2018
1 parent ed2bd02 commit beaa750
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion third_party/cabal2bazel/bzl/cabal_package.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ def _module_output(file, ending):
def _find_module_by_ending(modulePath, ending, sourceDirs):
# Find module source file in source directories.
files = native.glob([
paths.join(d, modulePath + "." + ending)
paths.join(d if d != "." else "", modulePath + "." + ending)
for d in sourceDirs
])
if len(files) == 0:
Expand Down

0 comments on commit beaa750

Please sign in to comment.