Skip to content

Commit

Permalink
Merge pull request #2 from thiago-farias/fix-libraries-install-jar
Browse files Browse the repository at this point in the history
Fix libraries install jar
  • Loading branch information
jullianow authored May 19, 2020
2 parents 579aad1 + 5879a5a commit 09c5942
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")

http_archive(
name = "rules_databricks",
sha256 = "3f50d35f68e796aa774781fa6419d9795ff16c157e31d8d6de1f286a8bf66339",
strip_prefix = "rules_databricks-0.1",
sha256 = "4037efc2da666bba224342f758c41a0110bbf240f112693f1d86364160883f1d",
strip_prefix = "rules_databricks-0.2",
urls = [
"https://github.com/jullianow/rules_databricks/archive/v0.1.tar.gz"
"https://github.com/jullianow/rules_databricks/archive/v0.2.tar.gz"
],
)

Expand Down
6 changes: 3 additions & 3 deletions internal/utility/libraries.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,10 @@ def _impl(ctx):
transitive_files.append(dbfs[FsInfo].stamp_file)
variables+=['STAMP=$(cat %s)' % dbfs[FsInfo].stamp_file.short_path]

if api_cmd == "install":
cmd+=["exe '%s'" % dbfs[DefaultInfo].files_to_run.executable.short_path]
if api_cmd == "install":
cmd+=["exe '%s'" % dbfs[DefaultInfo].files_to_run.executable.short_path]

cmd+=[cmd_template.format(OPTIONS = "--jar %s" % f) for f in dbfs[FsInfo].dbfs_files_path]
cmd+=[cmd_template.format(OPTIONS = "--jar %s" % f) for f in dbfs[FsInfo].dbfs_files_path]

if ctx.attr.maven_info:
for (r, cs) in ctx.attr.maven_info.items():
Expand Down

0 comments on commit 09c5942

Please sign in to comment.