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

Fix illegal package names entering database #33251

@varungandhi-src

Description

@varungandhi-src

Recently, we get an error like so:

t=2022-03-30T06:03:43+0000 lvl=eror msg="failed to parse npm package name retrieved from database" package=@builder.io/qwik/server error="expected dependency in (@scope/)?name@version format but found @builder.io/qwik/server@0"

While the parsing failure is understandable, the problem shouldn't have happened "by construction" -- it shouldn't be possible to construct packages with invalid names, and hence it a package with an invalid name shouldn't have been entered into the database. So it seems like validity checks are missing in one or more places.

Metadata

Metadata

Labels

iteration-22-8Code-Intel Iteration #8 in 2022team/graphGraph Team (previously Code Intel/Language Tools/Language Platform)

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions