Skip to content
This repository has been archived by the owner on Sep 15, 2021. It is now read-only.

Commit

Permalink
Add workspace name and fix runfiles lookup
Browse files Browse the repository at this point in the history
We are going to be changing the runfiles tree structure, which means
that runfiles will need to include the workspace name. See
https://github.com/bazelbuild/bazel/wiki/Updating-the-runfiles-tree-structure
for details, in particular the [no workspace name](https://github.com/bazelbuild/bazel/wiki/Updating-the-runfiles-tree-structure#incompatibility-with-no-workspace-name)
section.

This is part of rolling bazelbuild/bazel#848 forward.

RELNOTES: Workspace name is now io_bazel_skydoc.

--
MOS_MIGRATED_REVID=120566529
  • Loading branch information
kchodorow committed May 3, 2016
1 parent d42081e commit cdb1113
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions WORKSPACE
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
workspace(name = "io_bazel_skydoc")

git_repository(
name = "io_bazel_rules_sass",
remote = "https://github.com/bazelbuild/rules_sass.git",
Expand Down
2 changes: 1 addition & 1 deletion skydoc/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ def _runfile_path(path):
break

raise AssertionError('Cannot find .runfiles directory.')
return os.path.join(runfiles_dir, path)
return os.path.join(runfiles_dir, 'io_bazel_skydoc', path)

def merge_languages(macro_language, rule_language):
for rule in rule_language.rule:
Expand Down

0 comments on commit cdb1113

Please sign in to comment.