Skip to content

Commit 218654c

Browse files
authored
Merge pull request #8 from pubref/use_workspace_file_for_dirname
Update for bazel 0.4.4
2 parents b64ea37 + 48de0d8 commit 218654c

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ os:
88
- osx
99

1010
env:
11+
- V=0.4.4
1112
- V=0.4.3
1213
- V=0.4.2
1314
- V=0.4.1

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ dependencies. This will download the nodejs toolchain including
1515
```python
1616
git_repository(
1717
name = "org_pubref_rules_node",
18-
tag = "v0.3.2",
18+
tag = "v0.3.3",
1919
remote = "https://github.com/pubref/rules_node.git",
2020
)
2121

node/internal/node_repositories.bzl

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,19 +24,22 @@ def _node_toolchain_impl(ctx):
2424
fail("Unsupported operating system: " + os)
2525

2626
ctx.symlink(noderoot, ctx.path(''))
27+
2728
ctx.file("WORKSPACE", "workspace(name = '%s')" % ctx.name)
2829
ctx.file("BUILD", NODE_TOOLCHAIN_BUILD_FILE)
30+
ctx.file("BUILD.bazel", NODE_TOOLCHAIN_BUILD_FILE)
31+
2932

3033
_node_toolchain = repository_rule(
3134
_node_toolchain_impl,
3235
attrs = {
3336
"_linux": attr.label(
34-
default = Label("@nodejs_linux_amd64//:BUILD"),
37+
default = Label("@nodejs_linux_amd64//:WORKSPACE"),
3538
allow_files = True,
3639
single_file = True,
3740
),
3841
"_darwin": attr.label(
39-
default = Label("@nodejs_darwin_amd64//:BUILD"),
42+
default = Label("@nodejs_darwin_amd64//:WORKSPACE"),
4043
allow_files = True,
4144
single_file = True,
4245
),

0 commit comments

Comments
 (0)