Skip to content
This repository has been archived by the owner on Sep 30, 2024. It is now read-only.

build(bazel): upgrade to rules_js 2.0 RC #63022

Merged
merged 1 commit into from
Jun 4, 2024
Merged

build(bazel): upgrade to rules_js 2.0 RC #63022

merged 1 commit into from
Jun 4, 2024

Conversation

gregmagolan
Copy link
Contributor

@gregmagolan gregmagolan commented Jun 1, 2024

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

@cla-bot cla-bot bot added the cla-signed label Jun 1, 2024
@gregmagolan gregmagolan force-pushed the aspect/rules_js_2 branch 2 times, most recently from a8178e7 to f55c7b4 Compare June 1, 2024 18:41
@gregmagolan gregmagolan marked this pull request as ready for review June 1, 2024 18:48
@gregmagolan gregmagolan requested a review from Strum355 June 1, 2024 18:48
@Strum355 Strum355 enabled auto-merge (squash) June 4, 2024 11:04
Copy link
Contributor

@Strum355 Strum355 left a comment

Choose a reason for hiding this comment

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

full send

@Strum355 Strum355 merged commit 2d3d918 into main Jun 4, 2024
13 checks passed
@Strum355 Strum355 deleted the aspect/rules_js_2 branch June 4, 2024 11:26
Strum355 referenced this pull request Jun 6, 2024
…63143)

This regressed in https://github.com/sourcegraph/sourcegraph/pull/63022
where the custom `gather_files_from_js_providers` function that was
copied over from rules_js 1.x was including runfiles.

Resolves eslint failures seen in
https://buildkite.com/sourcegraph/sourcegraph/builds/277072#018fe743-abac-44d8-911b-d5a7ed425413
and observed locally:

```
(07:19:15) INFO: From ESLint client/wildcard/wildcard_lib_eslint-output.txt:
  |  
  | Oops! Something went wrong! :(
  |  
  | ESLint: 8.57.0
  |  
  | ESLint couldn't find a configuration file. To set up a configuration file for this project, please run:
  |  
  | npm init @eslint/config
  |  
  | ESLint looked for configuration files in /tmp/bazel-working-directory/__main__/bazel-out/k8-fastbuild/bin/client/wildcard/src/components/Alert and its ancestors. If it found none, it then looked in your home directory.
  |  
  | If you think you already have a configuration file or if you need more help, please stop by the ESLint Discord server: https://eslint.org/chat

```

## Test plan

CI (check test logs)

## Changelog
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants