-
Notifications
You must be signed in to change notification settings - Fork 203
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
Bazel 1.1 #3249
Bazel 1.1 #3249
Changes from all commits
5311b4d
190db45
3138932
5425f6e
a0ef0bb
1a5b3e8
6ede33e
94c3e1a
04ba09b
46eb74e
192d7f0
709a894
5fd186b
20131cb
3ce076c
149002b
cbc54a3
6640038
c1e1d1b
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -137,4 +137,6 @@ dev_env_tool = repository_rule( | |
), | ||
"prefix": attr.string(), | ||
}, | ||
configure = True, | ||
local = True, | ||
) |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,3 +20,4 @@ index 0349e31bb3..d2e7408dbf 100644 | |
+#define _WIN32_WINNT 0x0A00 | ||
|
||
#include <windows.h> | ||
|
||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Bazel now uses an internal implementation instead of shelling out to |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
diff --git a/haskell/private/path_utils.bzl b/haskell/private/path_utils.bzl | ||
index 22bd50e8..89d1b52b 100644 | ||
--- a/haskell/private/path_utils.bzl | ||
+++ b/haskell/private/path_utils.bzl | ||
@@ -580,7 +580,7 @@ def parse_pattern(ctx, pattern_str): | ||
pattern_str = "//{package}{target}".format(package = ctx.label.package, target = pattern_str) | ||
|
||
# Separate package and target (if present). | ||
- package_target = pattern_str[2:].split(":", maxsplit = 2) | ||
+ package_target = pattern_str[2:].split(":", 2) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'll update rules_haskell in a separate PR, at which point this patch will be unnecessary.. |
||
package_str = package_target[0] | ||
target_str = None | ||
if len(package_target) == 2: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not for this PR but could we work around this by having some wrapper binary that then calls bash internally?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One way to address this is turn things like
client_server_test
into a macro that generates a script file and then callssh_test|binary
on that. Another is to usecc_toolchain.link|compile
to generate a binary that calls the shell script. I think the former is the better approach. I've experimented with both and the latter caused some issues with the test-environment not matching what the test-cases expected.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sounds good, thanks for the explanation!