-
Notifications
You must be signed in to change notification settings - Fork 81
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
Update to Bazel 1.1 #1142
Update to Bazel 1.1 #1142
Conversation
b52aa23
to
ef5c7c0
Compare
.netlify/build.sh
Outdated
# XXX: see .bazelrc note [backward compatible options] for rational behind | ||
# the --incompatible_use_python_toolchains flag | ||
bazel build --incompatible_use_python_toolchains=false //docs:api_html | ||
# XXX: Remove --host_force_python=PY2 after updating to Starlark 0.4.0 |
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.
What's Starlark 0.4? Is the language now versioned separately from Bazel?
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.
Changes below suggest you meant Stardoc.
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.
Good catch. Yes, I meant stardoc.
WORKSPACE
Outdated
#) | ||
nixpkgs_package( | ||
name = "python3", | ||
attribute_path = "python3", |
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.
Nit: I believe this line is line is redundant.
.netlify/build.sh
Outdated
# XXX: see .bazelrc note [backward compatible options] for rational behind | ||
# the --incompatible_use_python_toolchains flag | ||
bazel build --incompatible_use_python_toolchains=false //docs:api_html | ||
# XXX: Remove --host_force_python=PY2 after updating to Starlark 0.4.0 |
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.
Changes below suggest you meant Stardoc.
WORKSPACE
Outdated
) | ||
|
||
nixpkgs_python_configure( | ||
# XXX: Remove python2_attribute_path after updating to Starlark 0.4.0 |
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.
Same as above: did you mean Stardoc?
haskell/repositories.bzl
Outdated
strip_prefix = "rules_nixpkgs-0.5.2", | ||
urls = ["https://github.com/tweag/rules_nixpkgs/archive/v0.5.2.tar.gz"], | ||
sha256 = "b13cb651e972b3aa06bab75603923071d7647c9ee3f8acb707e3831aa606e911", | ||
strip_prefix = "rules_nixpkgs-bdc802f8e716c66d50cc91f7ad22505edf13c48b", |
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.
Ideally we should cut a new release of upstream.
d982e79
to
e562d98
Compare
e562d98
to
63218cd
Compare
Nixpkgs `haskellPackages` provides `proto-lens-protoc` 0.5. `proto-lens` 0.5 appears in stackage `lts-14`.
To include nixpkgs_python_configure
The examples and tutorial repository have been added to `.bazelignore` before, however, the local repositories remained defined. These are not used anywhere and can be removed.
The skydoc repository has been deprecated, see https://github.com/bazelbuild/skydoc/releases/tag/0.3.0 Skydoc has also been deprecated in favor of Stardoc, however the API changed, so we're not updating to Stardoc 0.4.0, yet.
depends on #1141 change base branch before merging
This is based on and replaces #1065.
rules_nixpkgs
to includenixpkgs_python_configure
.nixpkgs_python_configure
to avoid issues with the Python toolchain as described in Bump stackage nixpkgs + bazel 0.29 #1065.Defines an alias to be backwards compatible to users depending on that platform constraint.
Closes #1065.