Skip to content

build: update to nodejs rules 0.38.3 #33073

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

Closed

Conversation

gregmagolan
Copy link
Contributor

Some changes in rules_nodejs providers folded into @angular/bazel package:

  • NodeModuleSources renamed to NpmPackageInfo and now loaded from //internal/common:npm_package_info.bzl
  • collect_node_modules_aspect renamed to node_modules_aspect
  • new JS provider JSNamedModuleInfo now available and ng_module provides it using the js_named_module_info factory function
  • sources_aspect has also been removed so the use of the node_sources legacy provider has been replaced with JSNamedModuleInfo.

@gregmagolan gregmagolan requested a review from alexeagle October 9, 2019 23:00
@gregmagolan gregmagolan requested review from a team as code owners October 9, 2019 23:00
@gregmagolan gregmagolan force-pushed the update_rules_nodejs_0.38.2 branch from f77a06a to 45293ad Compare October 9, 2019 23:11
@gregmagolan
Copy link
Contributor Author

@alexeagle Changes to external.bzl will need g3 equivalents

@gregmagolan gregmagolan force-pushed the update_rules_nodejs_0.38.2 branch from 45293ad to 71f5db5 Compare October 9, 2019 23:20
@gregmagolan
Copy link
Contributor Author

@alexeagle @devversion Looks like we'll need to update material to 0.38.2 first to green this PR up. I'll make a PR in the morning if you don't get to it overnight @devversion .

@mhevery mhevery added the area: build & ci Related the build and CI infrastructure of the project label Oct 10, 2019
@ngbot ngbot bot added this to the needsTriage milestone Oct 10, 2019
@gregmagolan gregmagolan force-pushed the update_rules_nodejs_0.38.2 branch from def0a71 to 0578666 Compare October 10, 2019 22:51
@alexeagle
Copy link
Contributor

Note to caretaker: cl/271704225 has to land before this can get a green g3sync

@gregmagolan gregmagolan changed the title build: update to nodejs rules 0.38.2 build: update to nodejs rules 0.38.3 Oct 11, 2019
@gregmagolan gregmagolan force-pushed the update_rules_nodejs_0.38.2 branch from c5c76fc to f92cb0b Compare October 11, 2019 18:05
Some changes in rules_nodejs providers folded into @angular/bazel package:
* `NodeModuleSources` renamed to `NpmPackageInfo` and now loaded from `//internal/common:npm_package_info.bzl`
* `collect_node_modules_aspect` renamed to `node_modules_aspect`
* new JS provider `JSNamedModuleInfo` now available and ng_module provides it using the `js_named_module_info` factory function
* sources_aspect has also been removed so the use of the `node_sources` legacy provider has been replaced with `JSNamedModuleInfo`.
All providers now loaded from "@build_bazel_rules_nodejs//:providers.bzl".
Updates the `material-unit-test` job to run tests against
the latest commit of the Angular Components repository.

The components repository updated to rules_nodejs#0.38.2 before Angular Bazel did.
To do this, the `@angular/bazel` v0.38.2 compatibility changes were patched on postinstall.

This now conflicts because we install a `@angular/bazel` version in the `material-unit-tests` job
that already includes these compatibility changes. This would result in the patch being a noop
for which the `patch` command throws an error.

We can remove this once components can install a released version of `@angular/bazel` that is
compatible with `rules_nodejs#0.38.2`.
@gregmagolan gregmagolan force-pushed the update_rules_nodejs_0.38.2 branch from f92cb0b to 1f7ac97 Compare October 11, 2019 19:45
@gregmagolan gregmagolan requested a review from a team as a code owner October 11, 2019 20:20
@gregmagolan gregmagolan added the area: bazel Issues related to the published `@angular/bazel` build rules label Oct 11, 2019
@alexeagle
Copy link
Contributor

caretaker: g3sync presubmit

@alexeagle alexeagle added action: merge The PR is ready for merge by the caretaker target: major This PR is targeted for the next major release labels Oct 14, 2019
@mhevery mhevery closed this in 5e694e5 Oct 14, 2019
mhevery pushed a commit that referenced this pull request Oct 14, 2019
All providers now loaded from "@build_bazel_rules_nodejs//:providers.bzl".

PR Close #33073
mhevery pushed a commit that referenced this pull request Oct 14, 2019
Updates the `material-unit-test` job to run tests against
the latest commit of the Angular Components repository.

The components repository updated to rules_nodejs#0.38.2 before Angular Bazel did.
To do this, the `@angular/bazel` v0.38.2 compatibility changes were patched on postinstall.

This now conflicts because we install a `@angular/bazel` version in the `material-unit-tests` job
that already includes these compatibility changes. This would result in the patch being a noop
for which the `patch` command throws an error.

We can remove this once components can install a released version of `@angular/bazel` that is
compatible with `rules_nodejs#0.38.2`.

PR Close #33073
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Nov 14, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
action: merge The PR is ready for merge by the caretaker area: bazel Issues related to the published `@angular/bazel` build rules area: build & ci Related the build and CI infrastructure of the project cla: yes target: major This PR is targeted for the next major release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants