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

WIP Avoid double-parsing lockfile in bzlmod #1808

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

DavidZbarsky-at
Copy link
Contributor

I think this takes a slightly different approach from jbedard@2ba1311, so we can pass back the state and reuse it. I'm stuck on the following error, I can't figure out how this repo is created:
ERROR: module extension "npm" from "//npm:extensions.bzl" does not generate repository "npm", yet it is imported as "npm"

Also, this is skipping some of the coercion logic in npm_translate_lock macro because I was a bit lazy; I think factoring that into helpers should work or maybe duplicating it isn't the end of the world.

Does this seem sane?

Copy link

aspect-workflows bot commented Jun 15, 2024

Test

⚠️ Buildkite build #4671 failed.


Test

e2e/bzlmod

⚠️ Buildkite build #4671 failed.


Test

e2e/gyp_no_install_script

⚠️ Buildkite build #4671 failed.


Test

e2e/js_image_oci

⚠️ Buildkite build #4671 failed.


Test

e2e/npm_link_package

Buildkite build #4671 is running...


Test

e2e/npm_link_package-esm

Buildkite build #4671 is running...


Test

e2e/npm_translate_lock

⚠️ Buildkite build #4671 failed.


Test

e2e/npm_translate_lock_empty

⚠️ Buildkite build #4671 failed.


Test

e2e/npm_translate_lock_multi

⚠️ Buildkite build #4671 failed.


Test

e2e/npm_translate_lock_partial_clone

⚠️ Buildkite build #4671 failed.


Test

e2e/npm_translate_lock_subdir_patch

⚠️ Buildkite build #4671 failed.


Test

e2e/npm_translate_package_lock

⚠️ Buildkite build #4671 failed.


Test

e2e/npm_translate_yarn_lock

⚠️ Buildkite build #4671 failed.


Test

e2e/package_json_module

⚠️ Buildkite build #4671 failed.


Test

e2e/pnpm_lockfiles

⚠️ Buildkite build #4671 failed.


Test

e2e/pnpm_workspace

⚠️ Buildkite build #4671 failed.


Test

e2e/pnpm_workspace_rerooted

⚠️ Buildkite build #4671 failed.


Test

e2e/repo_mapping

⚠️ Buildkite build #4671 failed.


Test

e2e/rules_foo

Buildkite build #4671 is running...


Test

e2e/vendored_node

All tests were cache hits

1 test (100.0%) was fully cached saving 187ms.


Buildifier


Format

@jbedard jbedard marked this pull request as draft June 17, 2024 19:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant