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

Use canonical repo name for cross-repo npm_translate_lock #1876

Merged
merged 3 commits into from
Aug 4, 2024

Conversation

fmeum
Copy link
Contributor

@fmeum fmeum commented Aug 2, 2024

This prevents an error such as the following when trying to run a js_binary defined in another module with Bzlmod:

ERROR: .../external/rules_pyright~/BUILD:6:23: no such package '@@[unknown repo 'rules_pyright~' requested from @@rules_pyright~]//': The repository '@@[unknown repo 'rules_pyright~' requested from @@rules_pyright~]' could not be resolved: No repository visible as '@rules_pyright~' from repository '@@rules_pyright~' and referenced by '@@rules_pyright~//:pyright__entry_point'

Changes are visible to end-users: yes

  • Searched for relevant documentation and updated as needed: yes
  • Breaking change (forces users to change their own code or config): no
  • Suggested release notes appear below: yes

Fixed an issue when using js_binary from another module with Bzlmod.

Test plan

  • Covered by existing test cases

@fmeum fmeum force-pushed the fix-external-repo-pnpm-lock branch from 559c9d8 to cf17599 Compare August 2, 2024 07:45
@fmeum fmeum marked this pull request as ready for review August 2, 2024 07:46
This prevents an error such as the following when trying to run a `js_binary` defined in another module with Bzlmod:

```
ERROR: .../external/rules_pyright~/BUILD:6:23: no such package '@@[unknown repo 'rules_pyright~' requested from @@rules_pyright~]//': The repository '@@[unknown repo 'rules_pyright~' requested from @@rules_pyright~]' could not be resolved: No repository visible as '@rules_pyright~' from repository '@@rules_pyright~' and referenced by '@@rules_pyright~//:pyright__entry_point'
```
@fmeum fmeum force-pushed the fix-external-repo-pnpm-lock branch from cf17599 to 0c1d9ce Compare August 2, 2024 07:50
@jbedard
Copy link
Member

jbedard commented Aug 2, 2024

Do you have an example of a failure that you can put in a test?

@fmeum
Copy link
Contributor Author

fmeum commented Aug 2, 2024

@jbedard I added a test based on the original reproducer in https://bazelbuild.slack.com/archives/CDCMRLS23/p1722576498988349.

@fmeum fmeum force-pushed the fix-external-repo-pnpm-lock branch from 37e59e9 to 18fbe17 Compare August 2, 2024 18:00
@fmeum fmeum force-pushed the fix-external-repo-pnpm-lock branch from 18fbe17 to bb095d2 Compare August 2, 2024 18:03
@jbedard jbedard merged commit 521914e into aspect-build:main Aug 4, 2024
98 checks passed
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.

2 participants