Use locally built dpkg_parser instead of downloading pre-built remote binary - #477
Conversation
|
@yashbhutwala reported that, on Mac, this PR builds a local The user ended up explicitly setting Apparently, this PR doesn't resolve #434 completely. However, this will enable fixing #434 when we add the |
|
@chanseokoh can we make a note about run on mac os using the flag |
|
@yashbhutwala I think I need to confirm first if Historically, if there's any issue, it is reported pretty quickly, so I plan to wait a bit until someone else hits the CPU error. |
|
Odd: I remember having to use |
|
I maybe be losing my mind, but I believe this showed up in some container tests. |
@Sineaggi you mean |
|
@chanseokoh yeah, pretty simple to repro on my Mac. Forcing |
|
Otherwise, I've pulled the changes down, kept the |
|
Oh that's right — for |
|
@nlopezgi agreed that this is a common problem where they have never found a good solution, other repos also have this sort of thing, mostly the changes in this PR seems like pretty standard hacks that you have to make repo rules work, and the PR looks fine in general. |
We saw many issues during downloading debian snapshots, hopefully this new version works better. Unfortunately to run distroless we need to manually build the dpkg_parser, see GoogleContainerTools/distroless#477
Resolves some issues in #434.
Basically, implementing #463 (comment)
We are downloading a pre-built
dpkg_parser.par, which has caused a lot of issues to us and many external users: scionproto/scion#3673, bazelbuild/bazel#10742 (comment), #434, #474, #472, #471, #463 (comment), #469 (comment), #473Not only that, it becomes very cumbersome whenever we need to update
dpkg_parserand test it. Currently, the process isdpkg_parser.package_manager/package_manager.bzl.But perhaps one of the most critical issues is that the pre-built binary may not run on users' environments (primarily on Mac as in #434).
More Context About the Issue
I asked the following question on the Bazel Slack Channel.