Do bazel's *http_archive workspace rules not follow redirects?

156 views
Skip to first unread message

Jeremy Wall

unread,
Oct 22, 2015, 6:43:24 PM10/22/15
to bazel-discuss
I'm attempting to write a rule that will pull down nunit as an external dependency. However the canonical URL does a 302 redirect to a CDN for the actual download and the rules appear not to actually follow that redirect and instead pull down the http redirect page.

Obviously putting in the CDN url is fragile and not future proof. Am I missing something?

Jeremy Wall

unread,
Oct 22, 2015, 6:47:42 PM10/22/15
to bazel-discuss
For reference here is the url in question: https://github.com/nunit/nunitv2/releases/download/2.6.4/NUnit-2.6.4.zip

And this is my new_http_archive call in the workspace file:

new_http_archive(
    name="nunit",
    build_file="tools/build_defs/dotnet/BUILD.nunit",
    sha256="1bd925514f31e7729ccde40a38a512c2accd86895f93465f3dfe6d0b593d7170",
    type="zip",
)

Kristina Chodorow

unread,
Oct 23, 2015, 10:08:54 AM10/23/15
to Jeremy Wall, bazel-discuss
It should be, I'll follow up on https://github.com/bazelbuild/bazel/issues/527.

--
You received this message because you are subscribed to the Google Groups "bazel-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bazel-discus...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/bazel-discuss/3c7ebe41-e0bd-40a7-95d6-ab1f2bf97de5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages