-
-
Notifications
You must be signed in to change notification settings - Fork 108
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
2.0 RELEASE #1671
Comments
cc @jbedard |
I know the 2.0 release is still in alpha, but 1st party npm dependencies are failing to me on RBE. The following target builds sucessfully on RBE on rules_js 1.x:
The change of the default value for The target builds sucessfully without RBE. If I set The error I get is:
The |
Interesting. Thanks for the report. I'm not sure off hand what could be different tho its may be related to npm package sources no longer being in the JsInfo It might be that that change combined with some other change on the 2.x branch leads to the issue you're seeing. Either way, the fact that it is trying to copy a file from an npm package that is not there is probably a bug in the ruleset. The |
@bazaglia Can you compare the generated I'd be interested to see the difference if you're able to send me those files over Bazel Slack. |
@gregmagolan You are right, there are some differences in the generated |
I was able to repro and I have a fix for a case which looks like what you're hitting: #1762 |
Bumps to rules_js (and friends) to 2.0 RCs. This brings in performance improvements for analysis phase since npm package depsets and now much smaller. It also adds support for pnpm v9 and allows for linking js_library targets as 1p deps instead of npm_package targets. See aspect-build/rules_js#1671 for more details. ## Test plan CI ## Changelog
- Add a migration guide, adapted from #1671 - Add eslint in a few spots so it's more likely users discover it - Promote Aspect Workflows for CI/CD
* chore: docs updates for 2.0 - Add a migration guide, adapted from #1671 - Add eslint in a few spots so it's more likely users discover it - Promote Aspect Workflows for CI/CD * Update migrate_2.md
Marking this closed as the 2.0.0 release is now published |
rules_js 2.x branch: https://github.com/aspect-build/rules_js/tree/2.x
FEATURES
npm_package_store
transitive_files depset (perf: reduce size of npm_package_store transitive_files depset #1594)RCs ARE OUT
These are ready to try,
https://github.com/aspect-build/rules_js/releases/tag/v2.0.0-rc2
https://github.com/aspect-build/rules_cypress/releases/tag/v0.6.0-rc0
https://github.com/aspect-build/rules_esbuild/releases/tag/v0.21.0-rc1
https://github.com/aspect-build/rules_jasmine/releases/tag/v2.0.0-rc0
https://github.com/aspect-build/rules_jest/releases/tag/v0.22.0-rc0
https://github.com/aspect-build/rules_rollup/releases/tag/v2.0.0-rc0
https://github.com/aspect-build/rules_swc/releases/tag/v2.0.0-rc0
https://github.com/aspect-build/rules_ts/releases/tag/v3.0.0-rc0
https://github.com/aspect-build/rules_webpack/releases/tag/v0.16.0-rc0
BLOCKING TODOS (before 2.0 final)
PUNTED TO POST 2.0 RELEASE (non-breaking follow-ups)
lifecycle_hooks
andpatches
-like attributes do not contain entries that do not map to any npm packagesDOWNSTREAM RULE SET CHANGES
BREAKING CHANGES
User facing changes
npm_package
include_runfiles
toFalse
innpm_package
(refactor: default include_runfiles to False in npm_package #1567)npm_translate_lock
pkg
(refactor: change default linked target name to 'pkg' #1684)warn_on_unqualified_tarball_url
fromnpm_translate_lock
(refactor: remove unused warn_on_unqualified_tarball_url from npm_translate_lock #1568)package_json
attribute fromnpm_translate_lock
(refactor: remote deprecated package_json attribute from npm_translate_lock #1569)update_pnpm_lock_node_toolchain_prefix
fromnpm_translate_lock
(refactor: remove deprecated update_pnpm_lock_node_toolchain_prefix from npm_translate_lock #1574)pnpm_version
fromnpm_translate_lock
bzlmod extension (refactor: remove pnpm_version from npm_translate_lock bzlmod extension #1576)npm_translate_lock(use_starlark_yaml_parser)
(refactor: remove npm_translate_lock(use_starlark_yaml_parser) #1658)npm_import
run_lifecycle_hooks
fromnpm_import
(refactor: remove deprecated run_lifecycle_hooks from npm_import #1572)lifecycle_hooks_no_sandbox
fromnpm_import
(refactor: remove deprecated lifecycle_hooks_no_sandbox from npm_import #1573)js_filegroup => js_info_files
include_sources
andinclude_transitive_declarations
tojs_filegroup
rule and gather_files_from_js_providers + gather_runfiles helpers (refactor: add include_sources and include_transitive_declarations to js_filegroup rules and gather_files_from_js_providers + gather_runfiles helpers #1585)js_filegroup
tojs_info_files
(refactor: rename js_filegroup to js_info_files #1615)declarations => types
declarations
totypes
in JsInfo & throughout rules_js (refactor: rename declarations to types in JsInfo & throughout rules_js #1619)WORKSPACE
rules_js_register_toolchains
WORKSPACE function (refactor: move toolchain registration call to new rules_js_register_toolchains WORKSPACE function #1593)//npm:npm_import.bzl
(refactor: removed deprecated //npm:npm_import.bzl #1570)Dependencies
rules_nodejs
version to 6.1.0 (refactor: set minimum rules_nodejs version to 6.1.0 #1579)aspect_bazel_lib
to 2.7.1 (refactor: set minimum aspect_bazel_lib to 2.6.1 #1580)Drop Bazel 5 support
js_image_layer
bazel 5 legacy symlink detection (refactor: remove js_image_layer bazel5 legacy symlink detection #1610)Other
expand_template
rule since we now have a better alternative in bazel-lib (refactor: remove expand_template rule since we now have a better alternative in bazel-lib #1587)update_pnpm_lock
default value (refactor: remove legacy update_pnpm_lock default value #1624)NpmPackageStoreInfo
providers ingather_files_from_js_info
(refactor: don't gather files from NpmPackageStoreInfo providers in gather_files_from_js_info #1663)include_sources
andinclude_transitive_types
attributes tojs_binary
,js_test
andjs_run_binary
Internal changes that are BREAKING for downstream rule sets but not for end users
js_binary
unresolved_symlinks_enabled
attribute ofjs_binary
mandatory (refactor: make internal unresolved_symlinks_enabled attribute of js_binary mandatory #1571)NpmPackageInfo
directory
attribute ofNpmPackageInfo
tosrc
(refactor: rename directory attribute of NpmPackageInfo to src #1575)NpmPackageStoreInfo
src_directory
fromNpmPackageStoreInfo
(refactor: remove unused src_directory from NpmPackageStoreInfo #1566)JsInfo
JsInfo
npm_package_store_deps
tonpm_package_store_infos
(refactor: rename JsInfo npm_package_store_deps to npm_package_store_infos #1620)include_npm_linked_packages
toinclude_npm_sources
&& JsInfonpm_linked_packages
tonpm_sources
(refactor: rename include_npm_linked_packages to include_npm_sources && JsInfo npm_linked_packages to npm_sources #1623)declarations
totypes
in JsInfo & throughout rules_js (refactor: rename declarations to types in JsInfo & throughout rules_js #1619)JsInfo
for readability (refactor: re-order fields in JsInfo for readability #1648)Other
gather_files_from_js_providers
togather_files_from_js_info
(refactor: renamed gather_files_from_js_providers to gather_files_from_js_info #1617)gather_files_from_js_info
togather_files_from_js_infos
(refactor: rename gather_files_from_js_info to gather_files_from_js_infos #1665)utils.home_directory
and useget_home_directory
from Aspect bazel-lib utils instead (refactor: remove utils.home_directory and use get_home_directory from Aspect bazel-lib utils instead #1606)//js:enable_runfiles
and use@aspect_bazel_lib//lib:enable_runfiles
instead (refactor: remove //js:enable_runfiles and use @aspect_bazel_lib//lib:enable_runfiles instead #1605).sh
extension fromjs_binary
,merger
andjs_image_layer
launchers (fix: drop .sh extension from js_binary, merger and js_image_layer launchers #1586)NpmLinkedPackageInfo
provider and corresponding unusednpm_linked_packages
from JsInfo; rename load bearingnpm_linked_package_files
tonpm_linked_packages
(refactor: remove unused NpmLinkedPackageInfo provider and corresponding unused npm_linked_packages from JsInfo; rename load bearing npm_linked_package_files to npm_linked_packages #1588)//js/private:enable_runfiles
and//js/private:experimental_allow_unresolved_symlinks
(refactor: remove deprecated //js/private:enable_runfiles and //js/private:experimental_allow_unresolved_symlinks #1577)JS_LIBRARY_DATA_ATTR
andDOWNSTREAM_LINKED_NPM_DEPS_DOCSTRING
from js_helpersPlaces to update when release is out
The text was updated successfully, but these errors were encountered: