Googletest export
Updates Linux docker image to use Bazel 4.1.0 and GCC 11.1 Updates Bazel dependencies Removes the last usage of the deprecated and removed Python2 PiperOrigin-RevId: 375759184
This commit is contained in:
		
							
								
								
									
										30
									
								
								WORKSPACE
									
									
									
									
									
								
							
							
						
						
									
										30
									
								
								WORKSPACE
									
									
									
									
									
								
							@@ -3,28 +3,22 @@ workspace(name = "com_google_googletest")
 | 
				
			|||||||
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
 | 
					load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
 | 
				
			||||||
 | 
					
 | 
				
			||||||
http_archive(
 | 
					http_archive(
 | 
				
			||||||
    name = "com_google_absl",  # 2020-10-13T16:49:13Z
 | 
					    name = "com_google_absl",
 | 
				
			||||||
    sha256 = "00c3707bf9cd5eabd1ec6932cc65b97378c043f22573be3adf7d11bb7af17d06",
 | 
					    urls = ["https://github.com/abseil/abseil-cpp/archive/7971fb358ae376e016d2d4fc9327aad95659b25e.zip"],  # 2021-05-20T02:59:16Z
 | 
				
			||||||
    strip_prefix = "abseil-cpp-f3f785ab59478dd0312bf1b5df65d380650bf0dc",
 | 
					    strip_prefix = "abseil-cpp-7971fb358ae376e016d2d4fc9327aad95659b25e",
 | 
				
			||||||
    urls = [
 | 
					    sha256 = "aeba534f7307e36fe084b452299e49b97420667a8d28102cf9a0daeed340b859",
 | 
				
			||||||
        "https://github.com/abseil/abseil-cpp/archive/f3f785ab59478dd0312bf1b5df65d380650bf0dc.zip",
 | 
					 | 
				
			||||||
    ],
 | 
					 | 
				
			||||||
)
 | 
					)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
http_archive(
 | 
					http_archive(
 | 
				
			||||||
    name = "rules_cc",  # 2020-10-05T06:01:24Z
 | 
					  name = "rules_cc",
 | 
				
			||||||
    sha256 = "35ea62c63cd71d4000efe85f9f4f17e8afb23896c37ee9510952db2e9d8fbb70",
 | 
					  urls = ["https://github.com/bazelbuild/rules_cc/archive/68cb652a71e7e7e2858c50593e5a9e3b94e5b9a9.zip"],  # 2021-05-14T14:51:14Z
 | 
				
			||||||
    strip_prefix = "rules_cc-f055da4ff0cb2b3c73de1fe2f094ebdfb8b3acb9",
 | 
					  strip_prefix = "rules_cc-68cb652a71e7e7e2858c50593e5a9e3b94e5b9a9",
 | 
				
			||||||
    urls = [
 | 
					  sha256 = "1e19e9a3bc3d4ee91d7fcad00653485ee6c798efbbf9588d40b34cbfbded143d",
 | 
				
			||||||
        "https://github.com/bazelbuild/rules_cc/archive/f055da4ff0cb2b3c73de1fe2f094ebdfb8b3acb9.zip",
 | 
					 | 
				
			||||||
    ],
 | 
					 | 
				
			||||||
)
 | 
					)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
http_archive(
 | 
					http_archive(
 | 
				
			||||||
    name = "rules_python",  # 2020-09-30T13:50:21Z
 | 
					  name = "rules_python",
 | 
				
			||||||
    sha256 = "6e49996ad3cf45b2232b8f94ca1e3ead369c28394c51632be8d85fe826383012",
 | 
					  urls = ["https://github.com/bazelbuild/rules_python/archive/ed6cc8f2c3692a6a7f013ff8bc185ba77eb9b4d2.zip"],  # 2021-05-17T00:24:16Z
 | 
				
			||||||
    strip_prefix = "rules_python-c064f7008a30f307ea7516cf52358a653011f82b",
 | 
					  strip_prefix = "rules_python-ed6cc8f2c3692a6a7f013ff8bc185ba77eb9b4d2",
 | 
				
			||||||
    urls = [
 | 
					  sha256 = "98b3c592faea9636ac8444bfd9de7f3fb4c60590932d6e6ac5946e3f8dbd5ff6",
 | 
				
			||||||
        "https://github.com/bazelbuild/rules_python/archive/c064f7008a30f307ea7516cf52358a653011f82b.zip",
 | 
					 | 
				
			||||||
    ],
 | 
					 | 
				
			||||||
)
 | 
					)
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -31,7 +31,7 @@
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
set -euox pipefail
 | 
					set -euox pipefail
 | 
				
			||||||
 | 
					
 | 
				
			||||||
readonly LINUX_LATEST_CONTAINER="gcr.io/google.com/absl-177019/linux_hybrid-latest:20201008"
 | 
					readonly LINUX_LATEST_CONTAINER="gcr.io/google.com/absl-177019/linux_hybrid-latest:20210525"
 | 
				
			||||||
readonly LINUX_GCC_FLOOR_CONTAINER="gcr.io/google.com/absl-177019/linux_gcc-floor:20201015"
 | 
					readonly LINUX_GCC_FLOOR_CONTAINER="gcr.io/google.com/absl-177019/linux_gcc-floor:20201015"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
if [[ -z ${GTEST_ROOT:-} ]]; then
 | 
					if [[ -z ${GTEST_ROOT:-} ]]; then
 | 
				
			||||||
@@ -95,6 +95,7 @@ for std in ${STD}; do
 | 
				
			|||||||
        --copt="-Wall" \
 | 
					        --copt="-Wall" \
 | 
				
			||||||
        --copt="-Werror" \
 | 
					        --copt="-Werror" \
 | 
				
			||||||
        --define="absl=${absl}" \
 | 
					        --define="absl=${absl}" \
 | 
				
			||||||
 | 
					        --distdir="/bazel-distdir" \
 | 
				
			||||||
        --keep_going \
 | 
					        --keep_going \
 | 
				
			||||||
        --show_timestamps \
 | 
					        --show_timestamps \
 | 
				
			||||||
        --test_output=errors
 | 
					        --test_output=errors
 | 
				
			||||||
@@ -116,6 +117,7 @@ for std in ${STD}; do
 | 
				
			|||||||
        --copt="-Wall" \
 | 
					        --copt="-Wall" \
 | 
				
			||||||
        --copt="-Werror" \
 | 
					        --copt="-Werror" \
 | 
				
			||||||
        --define="absl=${absl}" \
 | 
					        --define="absl=${absl}" \
 | 
				
			||||||
 | 
					        --distdir="/bazel-distdir" \
 | 
				
			||||||
        --keep_going \
 | 
					        --keep_going \
 | 
				
			||||||
        --linkopt="--gcc-toolchain=/usr/local" \
 | 
					        --linkopt="--gcc-toolchain=/usr/local" \
 | 
				
			||||||
        --show_timestamps \
 | 
					        --show_timestamps \
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -103,7 +103,6 @@ py_test(
 | 
				
			|||||||
        ":gmock_output_test_",
 | 
					        ":gmock_output_test_",
 | 
				
			||||||
        ":gmock_output_test_golden.txt",
 | 
					        ":gmock_output_test_golden.txt",
 | 
				
			||||||
    ],
 | 
					    ],
 | 
				
			||||||
    python_version = "PY2",
 | 
					 | 
				
			||||||
    tags = [
 | 
					    tags = [
 | 
				
			||||||
        "no_test_msvc2015",
 | 
					        "no_test_msvc2015",
 | 
				
			||||||
        "no_test_msvc2017",
 | 
					        "no_test_msvc2017",
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user