Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to build #34

Closed
timbod7 opened this issue Apr 12, 2017 · 4 comments
Closed

Unable to build #34

timbod7 opened this issue Apr 12, 2017 · 4 comments

Comments

@timbod7
Copy link

timbod7 commented Apr 12, 2017

#It seems that the specified version of git://github.com/bazelbuild/rules_scala doesn't work for me. I can can get it to build by reverting to an older version:

10:00:41 /tmp$ bazel version
Build label: 0.4.3-homebrew
Build target: bazel-out/local-opt/bin/src/main/java/com/google/devtools/build/lib/bazel/BazelServer_deploy.jar
Build time: Thu Dec 22 15:20:22 2016 (1482420022)
Build timestamp: 1482420022
Build timestamp as int: 1482420022
10:00:49 /tmp$ git clone git@github.com:johnynek/bazel-deps.git
Cloning into 'bazel-deps'...
remote: Counting objects: 1373, done.
remote: Compressing objects: 100% (129/129), done.
remote: Total 1373 (delta 72), reused 0 (delta 0), pack-reused 1143
Receiving objects: 100% (1373/1373), 232.15 KiB | 70.00 KiB/s, done.
Resolving deltas: 100% (504/504), done.
10:01:44 /tmp$ cd bazel-deps/
10:01:51 (master) /tmp/bazel-deps$ bazel build src/scala/com/github/johnynek/bazel_deps:parseproject_deploy.jar
..........
ERROR: /private/var/tmp/_bazel_timd/a7de4f7e235bf03b78f61c24d46128fc/external/io_bazel_rules_scala/scala/scala.bzl:26:16: function 'depset' does not exist.
ERROR: com.google.devtools.build.lib.packages.BuildFileContainsErrorsException: error loading package '': Extension 'scala/scala.bzl' has errors.
INFO: Elapsed time: 5.442s
10:02:23 (master) /tmp/bazel-deps$ sed -i 's/b51e54cf0a77f66c269c8c8fa24d62cac388337d/690cf39eba8eccf3c6e21ca77d8a4e1710aa3629/' WORKSPACE
10:02:57 {master} /tmp/bazel-deps$ bazel build src/scala/com/github/johnynek/bazel_deps:parseproject_deploy.jar
.... works ok
@johnynek
Copy link
Collaborator

I guess this means you need a later bazel since I suppose the rules_scala require a later version.

Sorry for the pain point here.

@timbod7
Copy link
Author

timbod7 commented Apr 12, 2017

Thanks. It would be good to specify the necessary version in the README file.

@timbod7
Copy link
Author

timbod7 commented Apr 12, 2017

I can confirm that it seems to work ok with bazel 0.4.5 (the current version from OSX homebrew).

@johnynek
Copy link
Collaborator

Cool.

@timbod7 timbod7 closed this as completed Apr 12, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants