-
Notifications
You must be signed in to change notification settings - Fork 4.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
strip_prefix leads to invalid dep includes #520
Comments
strip_prefix shouldn't extract to
If I set `strip_prefix="glm", I end up with:
Can you give an example (the WS & BUILD files) that isn't working for you? |
I'm using bazel version 0.1.1 and getting similar behavior WORKSPACEworkspace(name = "example")
new_http_archive(
name = "typescript",
build_file = "typescript.BUILD",
url = "http://registry.npmjs.org/typescript/-/typescript-1.6.2.tgz",
sha256 = "d553c416b02772452a8b3e0a6dd9db735c5d40154e99f1b1d6b730a2f0d6cbd2",
strip_prefix = "package") typescript.BUILDpackage(default_visibility = ["//visibility:public"])
filegroup(
name = "tsc",
srcs = ["bin/tsc"]) external/typescript contents
|
Is there any advice here? |
When I build this, I end up with:
which looks correct, so I think you might be running into another complication of #352. Did you build it before adding the strip_prefix option, then add the strip_prefix option? I'm guessing the remote repository didn't get modified correctly when you added the option. Can you try running |
I did do what you suggested might be the cause. However, redownloading does not fix the issue. Are you on version 0.1.1? I feel like this works on master but not on the published version. |
I can confirm that |
As this bug should be closed in the upcoming release, marking as fixed. |
Is this 0.12? 0.12 seems to be based off a fairly old commit. |
We're actually re-cutting 0.1.2 because it had a huge number of cherry-picks needed. |
Ah ok, that sounds great then. Thank you for all your help! |
When getting includes by deps,
strip_prefix
is not honored. This way it results in-Isystem external/lua/src
(with e.g. the actual path beingexternal/lua/lua-5.2.4/src
). Either the error lies in extracting with thelua-5.2.4
(which isstrip_prefix
) path or with not handlingstrip_prefix
for deps.The text was updated successfully, but these errors were encountered: