bazel-deps icon indicating copy to clipboard operation
bazel-deps copied to clipboard

Generates sha1 and repository in place of sha256 and url

Open Marcus-Rosti opened this issue 6 years ago • 5 comments

running f3deb1c and bazel 0.15.2,

generates list_deps that doesn't include sha256 or url

Marcus-Rosti avatar Jul 18 '18 18:07 Marcus-Rosti

can you expand on the bug report? What did you expect, what did you see, did moving to the previous version help?

johnynek avatar Jul 18 '18 22:07 johnynek

I'm hitting this, too, and put together an example over here: https://github.com/deadmoose/no-url

The jar_artifact expects to have hash["url"] and hash["sha256"], but if you look at the actual definitions in list_dependencies there's sha1 and no url

deadmoose avatar Jul 20 '18 21:07 deadmoose

In particular, it appears that using the default resolverType does that, whereas explicitly switching to resolverType: "coursier" generates a valid file.

deadmoose avatar Jul 20 '18 21:07 deadmoose

okay, I think the issue is that aether does not support this....

I think we should probably just remove aether. We have been using coursier happily at Stripe for a while.

johnynek avatar Jul 20 '18 22:07 johnynek

Given we had to stop using Aether for its bugs i'm pretty bullish on removing.

Aether in bazel-deps could be made to support this, when i added the sha256/url stuff I only did coursier and had them optional. Looks like layered with other changes it became required. I'd say we need a test to ensure both resolvers operate right, but i'm super bullish on removing aether given the bugs/issues in that resolver coming from upstream

ianoc-stripe avatar Aug 15 '18 13:08 ianoc-stripe