英文:
Unknown META specification, cannot validate. [Spec v1.0.1]
问题
PGXN上传问题:
我正在尝试将此分发包上传到PGXN,这是我的_extension的新版本1.0.1。之前的扩展版本在这里:https://pgxn.org/dist/my_extension/1.0.0/
遇到以下错误:
错误消息
扩展代码位于我的GitHub上:https://github.com/IshaanAdarsh/Postgres-extension-tutorial/tree/main/Code/my_extension
回归测试可用,其他一切正常运行。
META.json文件的代码如下所示
我已经在多个站点上检查过,这是有效的JSON。
您能帮助我找出我的代码有什么问题吗:
{
"name": "my_extension",
"abstract": "A Basic PostgreSQL extension",
"description": "my_extension is a PostgreSQL extension that provides additional functionality for data management and operations.",
"version": "1.0.1",
"maintainer": [
"Ishaan Adarsh <ishaanad9@gmail.com>"
],
"license": "postgresql",
"provides": {
"my_extension": {
"file": "my_extension--1.0.1.sql",
"docfile": "doc/my_extension.md",
"version": "1.0.1"
}
},
"generated_by": "Ishaan Adarsh",
"meta-spec": {
"version": "1.0.1",
"url": "https://pgxn.org/meta/spec.txt"
}
}
英文:
PGXN upload issue:
I am trying to uplaod this distribution pcakage into PGXN, this is the new version my_extension 1.0.1. THe previous extension: https://pgxn.org/dist/my_extension/1.0.0/
Getting this error:
Error message
The extension code is on my github: https://github.com/IshaanAdarsh/Postgres-extension-tutorial/tree/main/Code/my_extension
The regression tests work and everything else works fine.
The Code for the META.json file is given below
I have checked on mutiple sites, this is valid JSON.
Could you help me figure out what is the problem with my code:
{
"name": "my_extension",
"abstract": "A Basic PostgreSQL extension",
"description": "my_extension is a PostgreSQL extension that provides additional functionality for data management and operations.",
"version": "1.0.1",
"maintainer": [
"Ishaan Adarsh <ishaanad9@gmail.com>"
],
"license": "postgresql",
"provides": {
"my_extension": {
"file": "my_extension--1.0.1.sql",
"docfile": "doc/my_extension.md",
"version": "1.0.1"
}
},
"generated_by": "Ishaan Adarsh",
"meta-spec": {
"version": "1.0.1",
"url": "https://pgxn.org/meta/spec.txt"
}
}
答案1
得分: 1
meta-spec
必须是版本 1.0.0
。这指的是JSON规范的版本,而不是您的模块版本。1.0.0
是唯一存在的规范。
英文:
The meta-spec
must be version 1.0.0
. That's referring to the version of the JSON specification, NOT your module version. 1.0.0
is the only spec that exists.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论