未知的META规范,无法验证。[规范版本 v1.0.1]

huangapple go评论54阅读模式
英文:

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:

{
  &quot;name&quot;: &quot;my_extension&quot;,
  &quot;abstract&quot;: &quot;A Basic PostgreSQL extension&quot;,
  &quot;description&quot;: &quot;my_extension is a PostgreSQL extension that provides additional functionality for data management and operations.&quot;,
  &quot;version&quot;: &quot;1.0.1&quot;,
  &quot;maintainer&quot;: [
    &quot;Ishaan Adarsh &lt;ishaanad9@gmail.com&gt;&quot;
  ],
  &quot;license&quot;: &quot;postgresql&quot;,
  &quot;provides&quot;: {
    &quot;my_extension&quot;: {
      &quot;file&quot;: &quot;my_extension--1.0.1.sql&quot;,
      &quot;docfile&quot;: &quot;doc/my_extension.md&quot;,
      &quot;version&quot;: &quot;1.0.1&quot;
    }
  },
  &quot;generated_by&quot;: &quot;Ishaan Adarsh&quot;,
  &quot;meta-spec&quot;: {
    &quot;version&quot;: &quot;1.0.1&quot;,
    &quot;url&quot;: &quot;https://pgxn.org/meta/spec.txt&quot;
  }
}

答案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.

huangapple
  • 本文由 发表于 2023年6月30日 02:19:53
  • 转载请务必保留本文链接:https://go.coder-hub.com/76583694.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定