Skip to content

[Bug]: Googletest commit in quickstart-bazel.md fails with Bazel 6. #4096

@oliverlee

Description

@oliverlee

Describe the issue

The current quickstart guide for building with Bazel uses commit
6092810

With Bazel 6, there is a build failure with the following message:

Constraints from @bazel_tools//platforms have been removed. Please use
constraints from @platforms repository embedded in Bazel, or preferably
declare dependency on https://github.com/bazelbuild/platforms. See
https://github.com/bazelbuild/bazel/issues/8622 for details.

This is resolved with a more recent commit (e.g. HEAD).

Steps to reproduce the problem

Copy the directions in https://github.com/google/googletest/blob/main/docs/quickstart-bazel.md

❯ USE_BAZEL_VERSION=6.0.0 bazelisk build //...

What version of GoogleTest are you using?

6092810

What operating system and version are you using?

ubuntu 20.04

What compiler and version are you using?

gcc 9

What build system are you using?

Bazel 6.0.0

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions