You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I updated my bazel and it failed to build the project with ArtifactPrefixConflictException error
root@n37-013-195:~/code/kube-router# go run github.com/bazelbuild/bazelisk@latest build '@thirdparty_bpftool//:make_third_bpftool'
INFO: Invocation ID: d39d3c31-44ae-4884-b709-c4be9a74856e
ERROR: **One of the output paths 'bazel-out/k8-fastbuild/bin/external/thirdparty_bpftool/make_third_bpftool' (belonging to @@thirdparty_bpftool//:make_third_bpftool) and 'bazel-out/k8-fastbuild/bin/external/thirdparty_bpftool/make_third_bpftool/bpftool' (belonging to @@thirdparty_bpftool//:make_third_bpftool) is a prefix of the other**. These actions cannot be simultaneously present; please rename one of the output files or build just one of them
Target @@thirdparty_bpftool//:make_third_bpftool failed to build
ERROR: com.google.devtools.build.lib.actions.ArtifactPrefixConflictException: One of the output paths 'bazel-out/k8-fastbuild/bin/external/thirdparty_bpftool/make_third_bpftool' (belonging to @@thirdparty_bpftool//:make_third_bpftool) and 'bazel-out/k8-fastbuild/bin/external/thirdparty_bpftool/make_third_bpftool/bpftool' (belonging to @@thirdparty_bpftool//:make_third_bpftool) is a prefix of the other. These actions cannot be simultaneously present; please rename one of the output files or build just one of them
INFO: Elapsed time: 0.411s, Critical Path: 0.03s
INFO: 1 process: 1 internal.
ERROR: Build did NOT complete successfully
exit status 1
Then I take a look at the make rule that causes the error, this is what I have:
I think the problem is that make will build a directory based on the name of the rule, which is make_third_bpftool, and once the compile is done, the output of make will be generated under this directory, and cause the error.
So I'm wondering is there a way to avoid this issue?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
When I updated my bazel and it failed to build the project with ArtifactPrefixConflictException error
Then I take a look at the make rule that causes the error, this is what I have:
I think the problem is that make will build a directory based on the name of the rule, which is make_third_bpftool, and once the compile is done, the output of make will be generated under this directory, and cause the error.
So I'm wondering is there a way to avoid this issue?
Beta Was this translation helpful? Give feedback.
All reactions