Git Product home page Git Product logo

Comments (3)

philwo avatar philwo commented on June 3, 2024

Sorry for that, @kellycampbell! I'll see that we fix this quickly.

Can you describe your setup in more detail, so that I can reproduce this on my machine?

  • What is //tools/bazel exactly - a shell script that somehow executes Bazelisk (if yes, how) or Bazelisk itself?
  • Are you using the Python version of Bazelisk or the Go version?

from bazelisk.

kellycampbell avatar kellycampbell commented on June 3, 2024

I believe we're using the Go version.

Here's our //tools/bazel:

#!/bin/bash

set -eu

BAZELISK_VERSION=0.0.4
BAZELISK_DIR="$(dirname "${BASH_SOURCE[0]}")/bazelisk"

if [ "$(uname -s)" == "Darwin" ]; then
    BAZELISK="${BAZELISK_DIR}/bazelisk-${BAZELISK_VERSION}-darwin-amd64"
elif [ "$(uname -s)" == "Linux" ]; then
    BAZELISK="${BAZELISK_DIR}/bazelisk-${BAZELISK_VERSION}-linux-x86_64"
fi

exec -a "$0" "${BAZELISK}" "$@"

This makes it so our devs only need to install a bazel script or recent version of bazel that executes tools/bazel if it exists. Then the bazelisk binary is run and the real version of bazel we want is downloaded and run via the .bazelversion file.

from bazelisk.

philwo avatar philwo commented on June 3, 2024

Thanks! I'll look into this and will get back to you tomorrow :)

from bazelisk.

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.