Skip to content

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 review from a team and alexeagle October 9, 2019 23:00
@gregmagolan
Copy link
Contributor Author

@alexeagle Changes to external.bzl will need g3 equivalents

@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
@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
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 requested a review from a team 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