ERROR: Traceback (most recent call last):
File "/home/jjmaestro/.cache/bazel/_bazel_jjmaestro/e0806ab47903450e6ee36289894189ae/external/cuda_nsight-systems-2022.4.2_amd64_2022.4.2.50-32196742v0/BUILD.bazel", line 4, column 8, in <toplevel>
genrule(
Error in genrule: rule 'data' has file 'data.tar.gz' as both an input and an output
ERROR: /home/jjmaestro/.cache/bazel/_bazel_jjmaestro/e0806ab47903450e6ee36289894189ae/external/cuda_nsight-systems-2022.4.2_amd64_2022.4.2.50-32196742v0/BUILD.bazel: no such target '@@cuda_nsight-systems-2022.4.2_amd
64_2022.4.2.50-32196742v0//:data': target 'data' not declared in package '' defined by /home/jjmaestro/.cache/bazel/_bazel_jjmaestro/e0806ab47903450e6ee36289894189ae/external/cuda_nsight-systems-2022.4.2_amd64_2022.4
.2.50-32196742v0/BUILD.bazel
ERROR: /home/jjmaestro/.cache/bazel/_bazel_jjmaestro/e0806ab47903450e6ee36289894189ae/external/cuda/nsight-systems-2022.4.2/amd64/BUILD.bazel:3:6: no such target '@@cuda_nsight-systems-2022.4.2_amd64_2022.4.2.50-3219
6742v0//:data': target 'data' not declared in package '' defined by /home/jjmaestro/.cache/bazel/_bazel_jjmaestro/e0806ab47903450e6ee36289894189ae/external/cuda_nsight-systems-2022.4.2_amd64_2022.4.2.50-32196742v0/BU
ILD.bazel and referenced by '@@cuda//nsight-systems-2022.4.2/amd64:data'
ERROR: Analysis of target '//examples/cuda:test' failed; build aborted: Analysis failed
INFO: Elapsed time: 0.075s, Critical Path: 0.00s
INFO: 1 process: 1 internal.
ERROR: Build did NOT complete successfully
ERROR: No test targets were found, yet testing was requested
I think the error is in https://github.com/GoogleContainerTools/rules_distroless/blob/2ce7b477def75579c49bab25266f953f30275c88/apt/private/deb_import.bzl#L5-L16
When a Debian package has a data
file that's already compressed with gz
and named data.tar.gz
it fails with Error in genrule: rule 'data' has file 'data.tar.gz' as both an input and an output
.
Sample file that breaks: nsight-systems-2022.4.2_2022.4.2.50-1_amd64.deb, here's part of the lock.json
:
(...) "nsight-systems-2022.4.2": { "amd64": { "arch": "amd64", "dependencies": [], "name": "nsight-systems-2022.4.2", "sha256": "60b04b3149c4d42fad89ca448f2f0c69e28ab3f18b3c0f28649798bfe5778495", "url": "https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64/nsight-systems-2022.4.2_2022.4.2.50-1_amd64.deb", "version": "2022.4.2.50-32196742v0" } }, (...)
And its contents:
$ tar -tf nsight-systems-2022.4.2_2022.4.2.50-1_amd64.deb debian-binary control.tar.gz data.tar.gz _gpgbuilder
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4