Giter Club home page Giter Club logo

Comments (6)

ash2k avatar ash2k commented on September 20, 2024

What use case do you have in mind? It does support setting environment variables for commands via the command rule (see the readme).

from bazel-tools.

rockwotj avatar rockwotj commented on September 20, 2024

No not via that, it's actually for things like $RUNFILES_DIR or $BUILD_WORKSPACE_DIRECTORY

from bazel-tools.

ash2k avatar ash2k commented on September 20, 2024

Ok, can you give me an example of what you have in mind? I.e. an example of what you would like this rule to be able to do.

from bazel-tools.

rockwotj avatar rockwotj commented on September 20, 2024

Sorry I think I actually mean make variable substitution: https://docs.bazel.build/versions/master/be/make-variables.html#predefined_label_variables

Other binary commands do this with args and is useful when pared with #78

from bazel-tools.

ash2k avatar ash2k commented on September 20, 2024

Make variable expansion method is deprecated (was done here bazelbuild/bazel@6ab8ea1 without explanation) and there is no replacement at the moment. However, $(location label) syntax can be enabled via ctx.expand_location() which is not deprecated. Do you think that would be enough?

from bazel-tools.

rockwotj avatar rockwotj commented on September 20, 2024

Yes, I don't use anything other than location expanding anyways.

from bazel-tools.

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.