Prisma errors when not using the major.minor.patch versioning system
See original GitHub issueBug description
I recently changed my versioning system to use architecture.major.minor.patch instead of the usual major.minor.patch. When I did this and run npx prisma introspect, it errors with “Invalid version”
It does not make any sense that prisma would complain about this.
How to reproduce
- Go to package.json
- Change “version” to “0.1.0.0”
- Run npx prisma introspect
- See error “Invalid version”
Expected behavior
Prisma should be able to accept a versioning system that is not the usual major.minor.patch, so long as it is a string.
Prisma information
Not required
Environment & setup
- OS: Windows 10
- Database: MySQL
- Node.js version: 16.1.0
Prisma Version
prisma : 2.23.0
@prisma/client : 2.22.1
Current platform : windows
Query Engine : query-engine adf5e8cba3daf12d456d911d72b6e9418681b28b (at node_modules\@prisma\engines\query-engine-windows.exe)
Migration Engine : migration-engine-cli adf5e8cba3daf12d456d911d72b6e9418681b28b (at node_modules\@prisma\engines\migration-engine-windows.exe)
Introspection Engine : introspection-core adf5e8cba3daf12d456d911d72b6e9418681b28b (at node_modules\@prisma\engines\introspection-engine-windows.exe)
Format Binary : prisma-fmt adf5e8cba3daf12d456d911d72b6e9418681b28b (at node_modules\@prisma\engines\prisma-fmt-windows.exe)
Default Engines Hash : adf5e8cba3daf12d456d911d72b6e9418681b28b
Studio : 0.393.0
Issue Analytics
- State:
- Created 2 years ago
- Comments:6 (5 by maintainers)
Top Results From Across the Web
Error message reference - Prisma
Prisma Client throws a PrismaClientUnknownRequestError exception if the query engine returns an error related to a request that does not have an error...
Read more >npx prisma db push throws Invalid version: "0.1.0.6" #13243
So the theory is that setting an "invalid" (non semver MAJOR.MINOR.PATCH) version in the project's package.json file leads to an error when ...
Read more >Semantic Versioning 2.0.0 | Semantic Versioning
Precedence MUST be calculated by separating the version into major, minor, patch and pre-release identifiers in that order (Build metadata does not figure...
Read more >Prisma Cloud container images - Palo Alto Networks
Current Version: Prisma ... Manage > System > Utilities ... where X is the major version, Y is the minor version, and Z...
Read more >prisma - PyPI
Prisma Client Python is not stable. Breaking changes will be documented and released under a new MINOR version following this format. MAJOR ....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thanks!