Skip to content
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 nodejs rules 0.31.1 #87

Merged

Conversation

gregmagolan
Copy link
Contributor

@gregmagolan gregmagolan commented Jun 3, 2019

nodejs_binary entry_point is now a label. See release notes https://github.com/bazelbuild/rules_nodejs/releases/tag/0.31.0 for more info.

This commit is a pre-req to bazel-contrib/rules_nodejs#777

@googlebot
Copy link

So there's good news and bad news.

👍 The good news is that everyone that needs to sign a CLA (the pull request submitter and all commit authors) have done so. Everything is all good there.

😕 The bad news is that it appears that one or more commits were authored or co-authored by someone other than the pull request submitter. We need to confirm that all authors are ok with their commits being contributed to this project. Please have them confirm that here in the pull request.

Note to project maintainer: This is a terminal state, meaning the cla/google commit status will not change from this state. It's up to you to confirm consent of all the commit author(s), set the cla label to yes (if enabled on your project), and then merge this pull request when appropriate.

ℹ️ Googlers: Go here for more info.

@googlebot
Copy link

A Googler has manually verified that the CLAs look good.

(Googler, please make sure the reason for overriding the CLA status is clearly documented in these comments.)

ℹ️ Googlers: Go here for more info.

Copy link
Collaborator

@jelbourn jelbourn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you include something in the commit message that explains the context a bit more, especially around temporarily pointing to your fork?

@gregmagolan
Copy link
Contributor Author

@jelbourn Should have explained better in the desc. This is not meant to be merged until the commit is changed to point to a rules_nodejs release so the commit to my fork is temporary. PR is here to test against CI and will be updated to rules_nodejs upstream before merging :)

@gregmagolan gregmagolan force-pushed the manekinekko.rules-nodejs-entry-point branch from d968be6 to e47f9f1 Compare June 6, 2019 22:50
@googlebot
Copy link

So there's good news and bad news.

👍 The good news is that everyone that needs to sign a CLA (the pull request submitter and all commit authors) have done so. Everything is all good there.

😕 The bad news is that it appears that one or more commits were authored or co-authored by someone other than the pull request submitter. We need to confirm that all authors are ok with their commits being contributed to this project. Please have them confirm that here in the pull request.

Note to project maintainer: This is a terminal state, meaning the cla/google commit status will not change from this state. It's up to you to confirm consent of all the commit author(s), set the cla label to yes (if enabled on your project), and then merge this pull request when appropriate.

ℹ️ Googlers: Go here for more info.

@googlebot googlebot added cla: no and removed cla: yes labels Jun 6, 2019
@gregmagolan gregmagolan changed the title WIP: Update nodejs_binary entry points to labels Update to nodejs rules 0.31.0 Jun 6, 2019
@gregmagolan gregmagolan changed the title Update to nodejs rules 0.31.0 WIP: Update to nodejs rules 0.31.0 Jun 6, 2019
@gregmagolan gregmagolan force-pushed the manekinekko.rules-nodejs-entry-point branch from e47f9f1 to d033c0f Compare June 7, 2019 16:09
@gregmagolan gregmagolan changed the title WIP: Update to nodejs rules 0.31.0 Update to nodejs rules 0.31.1 Jun 7, 2019
@alexeagle alexeagle added cla: yes and removed cla: no labels Jun 7, 2019
@googlebot
Copy link

A Googler has manually verified that the CLAs look good.

(Googler, please make sure the reason for overriding the CLA status is clearly documented in these comments.)

ℹ️ Googlers: Go here for more info.

@alexeagle
Copy link
Contributor

Note: this means that rules_sass users will need to update their rules_nodejs version in WORKSPACE along with the next sass release. might want to include that note in the release notes @nex3

nodejs_binary entry_point is now a label
@gregmagolan gregmagolan force-pushed the manekinekko.rules-nodejs-entry-point branch from d033c0f to 50493db Compare June 10, 2019 23:30
@googlebot
Copy link

So there's good news and bad news.

👍 The good news is that everyone that needs to sign a CLA (the pull request submitter and all commit authors) have done so. Everything is all good there.

😕 The bad news is that it appears that one or more commits were authored or co-authored by someone other than the pull request submitter. We need to confirm that all authors are ok with their commits being contributed to this project. Please have them confirm that here in the pull request.

Note to project maintainer: This is a terminal state, meaning the cla/google commit status will not change from this state. It's up to you to confirm consent of all the commit author(s), set the cla label to yes (if enabled on your project), and then merge this pull request when appropriate.

ℹ️ Googlers: Go here for more info.

@@ -34,10 +34,6 @@ rules_sass_dependencies()
# Setup repositories which are needed for the Sass rules.
load("@io_bazel_rules_sass//:defs.bzl", "sass_repositories")
sass_repositories()

# Setup the NodeJS toolchain
load("@build_bazel_rules_nodejs//:defs.bzl", "node_repositories")
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

node_repositories() is no longer explicitly since sass_repositories() calls yarn_install which will call node_repositories() if it has not already been called.

@@ -5,9 +5,6 @@ load("//:package.bzl", "rules_sass_dependencies", "rules_sass_dev_dependencies")
rules_sass_dependencies()
rules_sass_dev_dependencies()

load("@build_bazel_rules_nodejs//:defs.bzl", "node_repositories")
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

node_repositories() is no longer explicitly since sass_repositories() calls yarn_install which will call node_repositories() if it has not already been called.


def sass_repositories():
"""Set up environment for Sass compiler.
"""

# 0.31.1: entry_point attribute of rules_nodejs is now a label
check_rules_nodejs_version("0.31.1")
Copy link
Contributor Author

@gregmagolan gregmagolan Jun 10, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If a rules_sass user is explicitly installing build_bazel_rules_nodejs in their WORKSPACE then they'll need to update to at least version 0.31.1. If they are not explicitly installing it then rules_sass_dependencies() will install the correct version transitively.

@googlebot
Copy link

A Googler has manually verified that the CLAs look good.

(Googler, please make sure the reason for overriding the CLA status is clearly documented in these comments.)

ℹ️ Googlers: Go here for more info.

@alexeagle alexeagle merged commit 9a00e55 into bazelbuild:master Jun 10, 2019
gregmagolan added a commit to gregmagolan/rules_nodejs that referenced this pull request Jun 11, 2019
* rules_sass bazelbuild/rules_sass#87 has landed so can switch back to upstream
* stardoc commit we were depending on has since been releases so can switch to a release archive of io_bazel
gregmagolan added a commit to gregmagolan/angular-bazel-example that referenced this pull request Jun 11, 2019
gregmagolan added a commit to gregmagolan/angular-bazel-example that referenced this pull request Jun 11, 2019
* update to upstream rules_sass commit now that bazelbuild/rules_sass#87 has landed (+2 squashed
* entry_point attributes in rules_nodejs are now labels
gregmagolan added a commit to gregmagolan/angular-bazel-example that referenced this pull request Jun 11, 2019
* update to upstream rules_sass commit now that bazelbuild/rules_sass#87 has landed (+2 squashed
* entry_point attributes in rules_nodejs are now labels
* includes temporary post-install patch for @angular/bazel protractor rule which will get removed once that rule is updated in angular repo
gregmagolan added a commit to gregmagolan/rules_nodejs that referenced this pull request Jun 11, 2019
* rules_sass bazelbuild/rules_sass#87 has landed so can switch back to upstream
* stardoc commits we were depending on have since been releases so can switch to a release archive of io_bazel & io_bazel_skydoc
gregmagolan added a commit to angular/angular-bazel-example that referenced this pull request Jun 11, 2019
* update to upstream rules_sass commit now that bazelbuild/rules_sass#87 has landed (+2 squashed
* entry_point attributes in rules_nodejs are now labels
* includes temporary post-install patch for @angular/bazel protractor rule which will get removed once that rule is updated in angular repo
alexeagle pushed a commit to bazel-contrib/rules_nodejs that referenced this pull request Jun 11, 2019
* rules_sass bazelbuild/rules_sass#87 has landed so can switch back to upstream
* stardoc commits we were depending on have since been releases so can switch to a release archive of io_bazel & io_bazel_skydoc
siberex pushed a commit to siberex/rules_nodejs that referenced this pull request Jun 11, 2019
* rules_sass bazelbuild/rules_sass#87 has landed so can switch back to upstream
* stardoc commits we were depending on have since been releases so can switch to a release archive of io_bazel & io_bazel_skydoc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants