Closed krishamb closed 5 years ago
i am also hitting the same issue, we just moved from 1.7 to 1.9. In my case i am running inside ubuntu docker container. Below is the error
root@d131374fe3a7:/ebay-envoy# bazel build -c dbg //:envoy INFO: Invocation ID: 31df315f-4acb-4467-8a5e-aad77f1f889d ERROR: error loading package '': Unable to load file '@com_lyft_protoc_gen_validate//bazel:go_proto_library.bzl': file doesn't exist ERROR: error loading package '': Unable to load file '@com_lyft_protoc_gen_validate//bazel:go_proto_library.bzl': file doesn't exist
Can someone guide us on this package issue ? Greatly appreciate your help.
Get Outlook for Androidhttps://aka.ms/ghei36
From: pitiwari notifications@github.com Sent: Wednesday, February 13, 2019 5:17:51 PM To: envoyproxy/envoy Cc: krishamb; Author Subject: Re: [envoyproxy/envoy] Envoy build fails unable to load package (#5937)
i am also hitting the same issue, we just moved from 1.7 to 1.9
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://nam05.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fenvoyproxy%2Fenvoy%2Fissues%2F5937%23issuecomment-463398224&data=02%7C01%7C%7C4a69a61398c64fe716ee08d692011816%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636856930721818947&sdata=g8qG00T0E%2FLMSXEyoghH6JpXkGk%2FhfulgkmZThtxK%2Bg%3D&reserved=0, or mute the threadhttps://nam05.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAbi4UGOOTwWFk9zafCHygiKtQTba5zuzks5vNI8PgaJpZM4a5rnf&data=02%7C01%7C%7C4a69a61398c64fe716ee08d692011816%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636856930721838970&sdata=QqTSzty78E1S8SeakNjk2Ytnjx56LT2%2FB%2Bh5s3zn6pI%3D&reserved=0.
was able to resolve it by editing the WORKSPACE file
Can you share what you edited and where is the file ?
Get Outlook for Androidhttps://aka.ms/ghei36
From: pitiwari notifications@github.com Sent: Friday, February 15, 2019 2:32:52 PM To: envoyproxy/envoy Cc: krishamb; Author Subject: Re: [envoyproxy/envoy] Envoy build fails unable to load package (#5937)
was able to resolve it by editing the WORKSPACE file
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fenvoyproxy%2Fenvoy%2Fissues%2F5937%23issuecomment-464171716&data=02%7C01%7C%7C7c1727ff3af94756b14c08d6937c60fb%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636858559737155588&sdata=fyBYnJsOSrt59YbaPuWcgeGEXsXFT7bxNiAEGBP12Uc%3D&reserved=0, or mute the threadhttps://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAbi4UKsiCf5Yh3oKW5ePlOdgbwW_3Xieks5vNwtkgaJpZM4a5rnf&data=02%7C01%7C%7C7c1727ff3af94756b14c08d6937c60fb%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636858559737165593&sdata=yGCLQygD9iQY8snW2yoRO8dJfTtILdlSjoImpUjxqG8%3D&reserved=0.
below is my workspace file. I removed some lines to make it work
workspace(name = "envoy")
local_repository( name = "envoy", path = "envoy", )
load("@envoy//bazel:repositories.bzl", "envoy_dependencies") load("@envoy//bazel:cc_configure.bzl", "cc_configure")
envoy_dependencies() cc_configure()
load("@envoy_api//bazel:repositories.bzl", "api_dependencies") api_dependencies()
load("@io_bazel_rules_go//go:def.bzl", "go_rules_dependencies", "go_register_toolchains") go_rules_dependencies() go_register_toolchains()
This issue has been automatically marked as stale because it has not had activity in the last 30 days. It will be closed in the next 7 days unless it is tagged "help wanted" or other activity occurs. Thank you for your contributions.
This issue has been automatically closed because it has not had activity in the last 37 days. If this issue is still valid, please ping a maintainer and ask them to label it as "help wanted". Thank you for your contributions.
Issue Template
Title: Unable to load package for '@com_lyft_protoc_gen_validate//bazel:pgv_proto_library.bzl' during bazel build
Description:
I am getting the following errors repeatedly for multiple packages during bazel build. I did bazel sync and it resolved few but still getting the following. Can we have a clean working scripts for dependencies ?
ERROR: Skipping '//source/exe:envoy-static': error loading package 'source/exe': in /source/bazel/envoy_build_system.bzl: in /build/tmp/_bazel_bazel/436badd4919a15958fa3800a4e21074a/external/envoy_api/bazel/api_build_system.bzl: Unable to load package for '@com_lyft_protoc_gen_validate//bazel:pgv_proto_library.bzl': BUILD file not found on package path WARNING: Target pattern parsing failed. ERROR: error loading package 'source/exe': in /source/bazel/envoy_build_system.bzl: in /build/tmp/_bazel_bazel/436badd4919a15958fa3800a4e21074a/external/envoy_api/bazel/api_build_system.bzl: Unable to load package for '@com_lyft_protoc_gen_validate//bazel:pgv_proto_library.bzl': BUILD file not found on package path
Repro steps: ./ci/run_envoy_docker.sh './ci/do_ci.sh bazel.dev' docker build container for Ubuntu in darwin Os Version:- Darwin C02XN3ZZJGH6 18.2.0 Darwin Kernel Version 18.2.0: Thu Dec 20 20:46:53 PST 2018; root:xnu-4903.241.1~1/RELEASE_X86_64 x86_64
output ./ci/run_envoy_docker.sh './ci/do_ci.sh bazel.dev' No remote cache bucket is set, skipping setup remote cache. ENVOY_SRCDIR=/source HEAD is now at 6c0625c... integration: make test use 3-arg base class ctor (#69) building using 6 CPUs clang/clang++ toolchain configured bazel fastbuild build with tests... Building... $TEST_TMPDIR defined: output root default is '/build/tmp' and max_idle_secs default is '15'. Starting local Bazel server and connecting to it... INFO: Writing tracer profile to '/build/tmp/_bazel_bazel/436badd4919a15958fa3800a4e21074a/command.profile' INFO: Invocation ID: 15f8a4bd-9656-45a7-b4de-3722bc4a7d41 ERROR: Skipping '//source/exe:envoy-static': error loading package 'source/exe': in /source/bazel/envoy_build_system.bzl: in /build/tmp/_bazel_bazel/436badd4919a15958fa3800a4e21074a/external/envoy_api/bazel/api_build_system.bzl: Unable to load package for '@com_lyft_protoc_gen_validate//bazel:pgv_proto_library.bzl': BUILD file not found on package path WARNING: Target pattern parsing failed. ERROR: error loading package 'source/exe': in /source/bazel/envoy_build_system.bzl: in /build/tmp/_bazel_bazel/436badd4919a15958fa3800a4e21074a/external/envoy_api/bazel/api_build_system.bzl: Unable to load package for '@com_lyft_protoc_gen_validate//bazel:pgv_proto_library.bzl': BUILD file not found on package path INFO: Elapsed time: 6.262s INFO: 0 processes. FAILED: Build did NOT complete successfully (0 packages loaded) currently loading: source/exe