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

Usability: no validation that pkg_npm#package_name matches package.json#name #2782

Closed
alexeagle opened this issue Jun 21, 2021 · 0 comments · Fixed by #2783
Closed

Usability: no validation that pkg_npm#package_name matches package.json#name #2782

alexeagle opened this issue Jun 21, 2021 · 0 comments · Fixed by #2783
Assignees

Comments

@alexeagle
Copy link
Collaborator

Our intent with the package_name attribute on pkg_npm is so that our analysis phase can know this info without having to read the package.json file, which we can do only inside an action during the execution phase.
However it's easy for users to trip on this. In particular in pairing with @Smokrow just now, we didn't have the package_name attribute defined at all, silently making this package not linkable (it didn't provide LinkablePackageInfo)

@alexeagle alexeagle self-assigned this Jun 21, 2021
alexeagle added a commit to alexeagle/rules_nodejs that referenced this issue Jun 21, 2021
Currently just validates that the package_name attribute matches the name in package.json (if there is one)

Fixes bazel-contrib#2782
alexeagle added a commit that referenced this issue Jun 21, 2021
Currently just validates that the package_name attribute matches the name in package.json (if there is one)

Fixes #2782
alexeagle added a commit that referenced this issue Jun 21, 2021
Currently just validates that the package_name attribute matches the name in package.json (if there is one)

Fixes #2782
twheys pushed a commit to twheys/rules_nodejs that referenced this issue Jan 13, 2022
Currently just validates that the package_name attribute matches the name in package.json (if there is one)

Fixes bazel-contrib#2782
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 a pull request may close this issue.

1 participant