Giter Club home page Giter Club logo

Comments (7)

ash2k avatar ash2k commented on June 19, 2024

@dimitarvdimitrov Would be great to find out which commit actually broke it. Could you see if e31d79d works

@laszlocsomor maybe you have an idea?

from bazel-tools.

dimitarvdimitrov avatar dimitarvdimitrov commented on June 19, 2024

@ash2k Same issue there as well. After a bit of investigation, found that there is an extra space in the grep regex at

source "$(grep -m1 "^bazel_tools/tools/bash/runfiles/runfiles.bash " \

Removing it solved the problem.

Should I submit a PR for that?

from bazel-tools.

laszlocsomor avatar laszlocsomor commented on June 19, 2024

@dimitarvdimitrov : That extra space should be there: https://github.com/bazelbuild/bazel/blob/9eb2ef0d1feea9a08161ea0f8c16e3ac0a07064d/tools/bash/runfiles/runfiles.bash#L53

Let me try to repro this error locally.

from bazel-tools.

laszlocsomor avatar laszlocsomor commented on June 19, 2024

I fail to repro this on Linux. Do you only see this on macOS?

What's the output of:

grep 'bazel_tools/tools/bash/runfiles/runfiles.bash' bazel-out/darwin-fastbuild/bin/run_all.bash.runfiles_manifest

?

from bazel-tools.

dimitarvdimitrov avatar dimitarvdimitrov commented on June 19, 2024

@laszlocsomor Managed to dig up the problem; it is because of my GREP_OPTIONS=--color=always.

Thanks for the help and sorry for bothering you guys with it.

Closing as it isn't an issue with bazel-tools

from bazel-tools.

laszlocsomor avatar laszlocsomor commented on June 19, 2024

Thanks for figuring that out! I wasn't aware GREP_OPTIONS existed.
Maybe I should make the script runfiles.bash init code ignore it.

from bazel-tools.

ash2k avatar ash2k commented on June 19, 2024

@laszlocsomor I think the only safe/deterministic solution would be to completely shield grep from all environment variables using env grep .... Same with any other programs in that script (if any) - they can be influenced by an environment variable, if not today, maybe in the future.

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.