Giter VIP home page Giter VIP logo

Comments (7)

ittaiz avatar ittaiz commented on July 16, 2024

you can see this error btw in my getting started scala repo (https://github.com/ittaiz/bazel-scala-getting-started)

from rules_scala.

johnynek avatar johnynek commented on July 16, 2024

Hi, definitely explaining correct use is in scope for the repo, but I'm a little unclear what your question is.

  1. is it that in the local tests we don't use the repo name @io_bazel_rules_scala?
  2. 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.

ittaiz avatar ittaiz commented on July 16, 2024

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.

  1. is it that in the local tests we don't use the repo name
    @io_bazel_rules_scala?
  2. 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.

ittaiz avatar ittaiz commented on July 16, 2024

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.

johnynek avatar johnynek commented on July 16, 2024

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.

ittaiz avatar ittaiz commented on July 16, 2024

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.

ittaiz avatar ittaiz commented on July 16, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.