Comments (7)
you can see this error btw in my getting started scala repo (https://github.com/ittaiz/bazel-scala-getting-started)
from rules_scala.
Hi, definitely explaining correct use is in scope for the repo, but I'm a little unclear what your question is.
- is it that in the local tests we don't use the repo name
@io_bazel_rules_scala
? - that we don't make it clear exactly how to setup a local
prelude_bazel
file, or the alternative?
If it is the latter, I 100% support adding "getting started" section to the README.md. If it is the former, I'm not sure what the style is. Is referring to targets with the full name allowed? I have never tried. For clarity, it might be good to use the full name, if that indeed works (I was somehow initially under the impression that names were only for remote repos, but it does seem like it should work if you were designing the feature).
PRs on both issues are warmly welcomed! :)
from rules_scala.
Excellent.
It's basically both.
I'll submit a PR with a getting started addition.
Regarding the usage of the full name I'll take a look and if it will work
I'll send that to.
My initial idea was to have a separate "test application" which might sit
in the examples repository which has to use the API the same way clients
use them. Problem is with this setup it can easily rot. Internally these
test apps are part of the chain of the library and so apart from serving as
documentation they validate the library author's assumptions on API usage.
On יום ב׳, 23 במאי 2016 at 7:30 P. Oscar Boykin [email protected]
wrote:
Hi, definitely explaining correct use is in scope for the repo, but I'm a
little unclear what your question is.
- is it that in the local tests we don't use the repo name
@io_bazel_rules_scala?- that we don't make it clear exactly how to setup a local prelude_bazel
file, or the alternative?If it is the latter, I 100% support adding "getting started" section to
the README.md. If it is the former, I'm not sure what the style is. Is
referring to targets with the full name allowed? I have never tried. For
clarity, it might be good to use the full name, if that indeed works (I was
somehow initially under the impression that names were only for remote
repos, but it does seem like it should work if you were designing the
feature).PRs on both issues are warmly welcomed! :)
—
You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub
#60 (comment)
from rules_scala.
Tried using the full name and didn't work
ERROR: error loading package 'test': Encountered error while reading extension file 'scala/scala.bzl': no such package '@io_bazel_rules_scala//scala': error loading package 'external': The repository named 'io_bazel_rules_scala' could not be resolved.
Is there an alias for a repository as well? Saw for a rule but doesn't sound like what we need.
from rules_scala.
There is bind, which allows you to basically make a solid link but that
goes the other way: making remote targets look local.
Maybe you can ask on the bazel list. I guess you cannot refer to the
current repo using the full name. Not exactly sure why they made that
choice. It may simply be an oversight.
On Monday, May 23, 2016, Ittai Zeidman [email protected] wrote:
Tried using the full name and didn't work
ERROR: error loading package 'test': Encountered error while reading
extension file 'scala/scala.bzl': no such package
'@io_bazel_rules_scala//scala': error loading package 'external': The
repository named 'io_bazel_rules_scala' could not be resolved.Is there an alias for a repository as well? Saw for a rule but doesn't
sound like what we need.—
You are receiving this because you commented.
Reply to this email directly or view it on GitHub
#60 (comment)
P. Oscar Boykin, Ph.D. | http://twitter.com/posco | http://pobox.com/~boykin
from rules_scala.
I'll ask and update here
On יום ג׳, 24 במאי 2016 at 19:14 P. Oscar Boykin [email protected]
wrote:
There is bind, which allows you to basically make a solid link but that
goes the other way: making remote targets look local.Maybe you can ask on the bazel list. I guess you cannot refer to the
current repo using the full name. Not exactly sure why they made that
choice. It may simply be an oversight.On Monday, May 23, 2016, Ittai Zeidman [email protected] wrote:
Tried using the full name and didn't work
ERROR: error loading package 'test': Encountered error while reading
extension file 'scala/scala.bzl': no such package
'@io_bazel_rules_scala//scala': error loading package 'external': The
repository named 'io_bazel_rules_scala' could not be resolved.Is there an alias for a repository as well? Saw for a rule but doesn't
sound like what we need.—
You are receiving this because you commented.
Reply to this email directly or view it on GitHub
<
#60 (comment)P. Oscar Boykin, Ph.D. | http://twitter.com/posco |
http://pobox.com/~boykin—
You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub
#60 (comment)
from rules_scala.
Do you want me to keep investigating the full name?
On יום ד׳, 25 במאי 2016 at 20:03 P. Oscar Boykin [email protected]
wrote:
Closed #60 #60 via
ce1cfac
ce1cfac
.—
You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub
#60 (comment)
from rules_scala.
Related Issues (20)
- Upgrade CI tests to use Bazel 6 HOT 2
- rules_scala cause IJ plugin failures with Bazel@HEAD
- Support for specifying test classes and/or test cases when using junit tests HOT 4
- warning: [path] bad path element
- [Scala 2.13.12] Issue with scala.tools.nsc.reporters.Reporter when compiling
- FYI - Discussion for SIP-51: drop 2.13 library forwards binary compatibility
- rules_scala support for JDK 21 HOT 42
- Add add_opens and add_exports support HOT 1
- Scalafmt fails with Build without the bytes HOT 20
- Support Scala 3.3.1
- SemanticdbInfo.plugin_jar should be File not string HOT 2
- coverage creates the offline.jar into same directory for tests with different directories
- Bazel 7 - scala_proto_aspect rule must declare '@@bazel_tools//tools/jdk:toolchain_type' toolchain in order to use java_common HOT 1
- Can't run a bazel executable within bazel on Windows HOT 10
- javacopts order differs from java_library
- strict_deps_mode = error complains about dependencies that aren't referenced HOT 3
- use newer version of scalafmt
- How to set JVM version? rules_scala keeps insisting on using Java 11 HOT 1
- Unreadable test result HOT 2
- test_scala_proto_server test is flaky on MacOS CI
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rules_scala.