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

Add purescript-pg #476

Closed
cakekindel opened this issue Apr 3, 2024 · 41 comments
Closed

Add purescript-pg #476

cakekindel opened this issue Apr 3, 2024 · 41 comments

Comments

@cakekindel
Copy link

{
  "name": "purescript-pg",
  "ref": "v1.0.0",
  "compiler": "0.15.15",
  "location": {
    "gitUrl": "https://git.orionkindel.com/orion/purescript-pg.git"
  }
}
@pacchettibotti
Copy link
Contributor

The JSON input for this package update is malformed:

An error occurred while decoding a JSON value:
  Under 'Publish':
  At object key name:
  Under 'PackageName':
  Unexpected value "purescript-pg".

You can try again by commenting on this issue with a corrected payload.

@cakekindel
Copy link
Author

{
  "name": "pg",
  "ref": "v1.0.0",
  "compiler": "0.15.15",
  "location": {
    "gitUrl": "https://git.orionkindel.com/orion/purescript-pg.git"
  }
}

@pacchettibotti
Copy link
Contributor

Cannot register pg because it has already been registered. If you want to register your package, please choose a different package name. If you want to transfer your package to a new location, please submit a transfer operation instead. Transferring a package is an authenticated operation; make sure you have set the 'owners' key in your manifest.

@cakekindel
Copy link
Author

{
  "name": "postgresql",
  "ref": "v1.0.0",
  "compiler": "0.15.15",
  "location": {
    "gitUrl": "https://git.orionkindel.com/orion/purescript-pg.git"
  }
}

@pacchettibotti
Copy link
Contributor

Packages are only allowed to come from GitHub for now. See #15

@cakekindel
Copy link
Author

cakekindel commented Apr 3, 2024

{
  "name": "postgresql",
  "ref": "v1.0.0",
  "compiler": "0.15.15",
  "location": {
    "githubOwner": "cakekindel",
    "githubRepo": "purescript-postgresql"
  }
}

@pacchettibotti
Copy link
Contributor

The JSON input for this package update is malformed:

An error occurred while decoding a JSON value:
  Under 'Publish':
  At object key name:
  Under 'PackageName':
  Unexpected value "purescript-pg".

You can try again by commenting on this issue with a corrected payload.

@cakekindel
Copy link
Author

{
  "name": "postgresql",
  "ref": "v1.0.0",
  "compiler": "0.15.15",
  "location": {
    "githubOwner": "cakekindel",
    "githubRepo": "purescript-postgresql"
  }
}

@pacchettibotti
Copy link
Contributor

Failed to clone repository cakekindel/purescript-postgresql at ref v1.0.0

@cakekindel
Copy link
Author

{
  "name": "postgresql",
  "ref": "v1.0.0",
  "compiler": "0.15.15",
  "location": {
    "githubOwner": "cakekindel",
    "githubRepo": "purescript-postgresql"
  }
}

@pacchettibotti
Copy link
Contributor

Package source does not have a purs.json file, creating one from your spago.yaml file...

@pacchettibotti
Copy link
Contributor

Could not publish your package - there was an error while converting your spago.yaml into a purs.json manifest:
No 'publish' key found under the 'package' key in config.

@cakekindel
Copy link
Author

{
  "name": "postgresql",
  "ref": "v1.0.0",
  "compiler": "0.15.15",
  "location": {
    "githubOwner": "cakekindel",
    "githubRepo": "purescript-postgresql"
  }
}

@pacchettibotti
Copy link
Contributor

Package source does not have a purs.json file, creating one from your spago.yaml file...

@pacchettibotti
Copy link
Contributor

Could not publish your package - a spago.yaml was present, but it was not possible to read it:
An error occurred while decoding a JSON value:
Under 'SpagoYaml':
At object key package:
Under 'PackageConfig':
At object key publish:
Under 'PublishConfig':
At object key location:
Under 'GitHub':
At object key githubRepo:
No value was found.

@cakekindel
Copy link
Author

{
  "name": "postgresql",
  "ref": "v1.0.0",
  "compiler": "0.15.15",
  "location": {
    "githubOwner": "cakekindel",
    "githubRepo": "purescript-postgresql"
  }
}

@cakekindel
Copy link
Author

cakekindel commented Apr 3, 2024

Packages are only allowed to come from GitHub for now. See #15

purescript/registry-dev#15

@pacchettibotti
Copy link
Contributor

Package source does not have a purs.json file, creating one from your spago.yaml file...

@pacchettibotti
Copy link
Contributor

Could not publish your package - there was an error while converting your spago.yaml into a purs.json manifest:
The following packages did not have their ranges specified: aff, aff-promise, arrays, bifunctors, control, datetime, effect, either, exceptions, foldable-traversable, foreign, foreign-object, fork, integers, js-bigints, lists, maybe, mmorph, newtype, node-buffer, node-event-emitter, nullable, parallel, partial, precise-datetime, prelude, profunctor, record, simple-json, strings, transformers, tuples, typelevel-prelude, unsafe-coerce

@cakekindel
Copy link
Author

{
  "name": "postgresql",
  "ref": "v1.0.0",
  "compiler": "0.15.15",
  "location": {
    "githubOwner": "cakekindel",
    "githubRepo": "purescript-postgresql"
  }
}

@pacchettibotti
Copy link
Contributor

Package source does not have a purs.json file, creating one from your spago.yaml file...

@pacchettibotti
Copy link
Contributor

Converted your spago.yaml into a purs.json manifest to use for publishing:

  "name": "pg",
  "version": "1.0.0",
  "license": "GPL-3.0-or-later",
  "location": {
    "githubOwner": "cakekindel",
    "githubRepo": "puresript-postgresql"
  },
  "dependencies": {
    "aff": ">=7.1.0 <8.0.0",
    "aff-promise": ">=4.0.0 <5.0.0",
    "arrays": ">=7.3.0 <8.0.0",
    "bifunctors": ">=6.0.0 <7.0.0",
    "control": ">=6.0.0 <7.0.0",
    "datetime": ">=6.1.0 <7.0.0",
    "effect": ">=4.0.0 <5.0.0",
    "either": ">=6.1.0 <7.0.0",
    "exceptions": ">=6.0.0 <7.0.0",
    "foldable-traversable": ">=6.0.0 <7.0.0",
    "foreign": ">=7.0.0 <8.0.0",
    "foreign-object": ">=4.1.0 <5.0.0",
    "fork": ">=6.0.0 <7.0.0",
    "integers": ">=6.0.0 <7.0.0",
    "js-bigints": ">=2.2.1 <3.0.0",
    "lists": ">=7.0.0 <8.0.0",
    "maybe": ">=6.0.0 <7.0.0",
    "mmorph": ">=7.0.0 <8.0.0",
    "newtype": ">=5.0.0 <6.0.0",
    "node-buffer": ">=9.0.0 <10.0.0",
    "node-event-emitter": ">=3.0.0 <4.0.0",
    "nullable": ">=6.0.0 <7.0.0",
    "parallel": ">=7.0.0 <8.0.0",
    "partial": ">=4.0.0 <5.0.0",
    "precise-datetime": ">=7.0.0 <8.0.0",
    "prelude": ">=6.0.1 <7.0.0",
    "profunctor": ">=6.0.1 <7.0.0",
    "record": ">=4.0.0 <5.0.0",
    "simple-json": ">=9.0.0 <10.0.0",
    "strings": ">=6.0.1 <7.0.0",
    "transformers": ">=6.0.0 <7.0.0",
    "tuples": ">=7.0.0 <8.0.0",
    "typelevel-prelude": ">=7.0.0 <8.0.0",
    "unsafe-coerce": ">=6.0.0 <7.0.0"
  }
}```

@pacchettibotti
Copy link
Contributor

The manifest file specifies a package name (pg) that differs from the package name submitted to the API (postgresql). The manifest and API request must match.

@cakekindel
Copy link
Author

{
  "name": "postgresql",
  "ref": "v1.0.0",
  "compiler": "0.15.15",
  "location": {
    "githubOwner": "cakekindel",
    "githubRepo": "purescript-postgresql"
  }
}

@pacchettibotti
Copy link
Contributor

Package source does not have a purs.json file, creating one from your spago.yaml file...

@pacchettibotti
Copy link
Contributor

Converted your spago.yaml into a purs.json manifest to use for publishing:

  "name": "postgresql",
  "version": "1.0.0",
  "license": "GPL-3.0-or-later",
  "location": {
    "githubOwner": "cakekindel",
    "githubRepo": "puresript-postgresql"
  },
  "dependencies": {
    "aff": ">=7.1.0 <8.0.0",
    "aff-promise": ">=4.0.0 <5.0.0",
    "arrays": ">=7.3.0 <8.0.0",
    "bifunctors": ">=6.0.0 <7.0.0",
    "control": ">=6.0.0 <7.0.0",
    "datetime": ">=6.1.0 <7.0.0",
    "effect": ">=4.0.0 <5.0.0",
    "either": ">=6.1.0 <7.0.0",
    "exceptions": ">=6.0.0 <7.0.0",
    "foldable-traversable": ">=6.0.0 <7.0.0",
    "foreign": ">=7.0.0 <8.0.0",
    "fork": ">=6.0.0 <7.0.0",
    "integers": ">=6.0.0 <7.0.0",
    "js-bigints": ">=2.2.1 <3.0.0",
    "lists": ">=7.0.0 <8.0.0",
    "maybe": ">=6.0.0 <7.0.0",
    "mmorph": ">=7.0.0 <8.0.0",
    "newtype": ">=5.0.0 <6.0.0",
    "node-buffer": ">=9.0.0 <10.0.0",
    "node-event-emitter": ">=3.0.0 <4.0.0",
    "nullable": ">=6.0.0 <7.0.0",
    "parallel": ">=7.0.0 <8.0.0",
    "partial": ">=4.0.0 <5.0.0",
    "precise-datetime": ">=7.0.0 <8.0.0",
    "prelude": ">=6.0.1 <7.0.0",
    "profunctor": ">=6.0.1 <7.0.0",
    "record": ">=4.0.0 <5.0.0",
    "simple-json": ">=9.0.0 <10.0.0",
    "strings": ">=6.0.1 <7.0.0",
    "transformers": ">=6.0.0 <7.0.0",
    "tuples": ">=7.0.0 <8.0.0",
    "typelevel-prelude": ">=7.0.0 <8.0.0",
    "unsafe-coerce": ">=6.0.0 <7.0.0"
  }
}```

@pacchettibotti
Copy link
Contributor

The manifest file specifies a location ({"githubOwner":"cakekindel","githubRepo":"puresript-postgresql"}) that differs from the location in the registry metadata ({"githubOwner":"cakekindel","githubRepo":"purescript-postgresql"}). If you would like to change the location of your package you should submit a transfer operation.

@cakekindel
Copy link
Author

{
  "name": "postgresql",
  "ref": "v1.0.0",
  "compiler": "0.15.15",
  "location": {
    "githubOwner": "cakekindel",
    "githubRepo": "purescript-postgresql"
  }
}

@pacchettibotti
Copy link
Contributor

Package source does not have a purs.json file, creating one from your spago.yaml file...

@pacchettibotti
Copy link
Contributor

Converted your spago.yaml into a purs.json manifest to use for publishing:

  "name": "postgresql",
  "version": "1.0.0",
  "license": "GPL-3.0-or-later",
  "location": {
    "githubOwner": "cakekindel",
    "githubRepo": "purescript-postgresql"
  },
  "dependencies": {
    "aff": ">=7.1.0 <8.0.0",
    "aff-promise": ">=4.0.0 <5.0.0",
    "arrays": ">=7.3.0 <8.0.0",
    "bifunctors": ">=6.0.0 <7.0.0",
    "control": ">=6.0.0 <7.0.0",
    "datetime": ">=6.1.0 <7.0.0",
    "effect": ">=4.0.0 <5.0.0",
    "either": ">=6.1.0 <7.0.0",
    "exceptions": ">=6.0.0 <7.0.0",
    "foldable-traversable": ">=6.0.0 <7.0.0",
    "foreign": ">=7.0.0 <8.0.0",
    "fork": ">=6.0.0 <7.0.0",
    "integers": ">=6.0.0 <7.0.0",
    "js-bigints": ">=2.2.1 <3.0.0",
    "lists": ">=7.0.0 <8.0.0",
    "maybe": ">=6.0.0 <7.0.0",
    "mmorph": ">=7.0.0 <8.0.0",
    "newtype": ">=5.0.0 <6.0.0",
    "node-buffer": ">=9.0.0 <10.0.0",
    "node-event-emitter": ">=3.0.0 <4.0.0",
    "nullable": ">=6.0.0 <7.0.0",
    "parallel": ">=7.0.0 <8.0.0",
    "partial": ">=4.0.0 <5.0.0",
    "precise-datetime": ">=7.0.0 <8.0.0",
    "prelude": ">=6.0.1 <7.0.0",
    "profunctor": ">=6.0.1 <7.0.0",
    "record": ">=4.0.0 <5.0.0",
    "simple-json": ">=9.0.0 <10.0.0",
    "strings": ">=6.0.1 <7.0.0",
    "transformers": ">=6.0.0 <7.0.0",
    "tuples": ">=7.0.0 <8.0.0",
    "typelevel-prelude": ">=7.0.0 <8.0.0",
    "unsafe-coerce": ">=6.0.0 <7.0.0"
  }
}```

@pacchettibotti
Copy link
Contributor

Could not produce valid dependencies for manifest.

[Error 1]
While solving aff each version could not be solved:
- 7.1.0: 
  Conflict in version ranges for parallel:
    >=7.0.0 (declared dependency)
    <7.0.0 seen in aff@7.1.0

@cakekindel
Copy link
Author

{
  "name": "postgresql",
  "ref": "v1.0.0",
  "compiler": "0.15.15",
  "location": {
    "githubOwner": "cakekindel",
    "githubRepo": "purescript-postgresql"
  }
}

@pacchettibotti
Copy link
Contributor

Package source does not have a purs.json file, creating one from your spago.yaml file...

@pacchettibotti
Copy link
Contributor

Converted your spago.yaml into a purs.json manifest to use for publishing:

  "name": "postgresql",
  "version": "1.0.0",
  "license": "GPL-3.0-or-later",
  "location": {
    "githubOwner": "cakekindel",
    "githubRepo": "purescript-postgresql"
  },
  "dependencies": {
    "aff": ">=7.1.0 <8.0.0",
    "aff-promise": ">=4.0.0 <5.0.0",
    "arrays": ">=7.3.0 <8.0.0",
    "bifunctors": ">=6.0.0 <7.0.0",
    "control": ">=6.0.0 <7.0.0",
    "datetime": ">=6.1.0 <7.0.0",
    "effect": ">=4.0.0 <5.0.0",
    "either": ">=6.1.0 <7.0.0",
    "exceptions": ">=6.0.0 <7.0.0",
    "foldable-traversable": ">=6.0.0 <7.0.0",
    "foreign": ">=7.0.0 <8.0.0",
    "fork": ">=6.0.0 <7.0.0",
    "integers": ">=6.0.0 <7.0.0",
    "js-bigints": ">=2.2.1 <3.0.0",
    "lists": ">=7.0.0 <8.0.0",
    "maybe": ">=6.0.0 <7.0.0",
    "mmorph": ">=7.0.0 <8.0.0",
    "newtype": ">=5.0.0 <6.0.0",
    "node-buffer": ">=9.0.0 <10.0.0",
    "node-event-emitter": ">=3.0.0 <4.0.0",
    "nullable": ">=6.0.0 <7.0.0",
    "parallel": ">=6.0.0 <7.0.0",
    "partial": ">=4.0.0 <5.0.0",
    "precise-datetime": ">=7.0.0 <8.0.0",
    "prelude": ">=6.0.1 <7.0.0",
    "profunctor": ">=6.0.1 <7.0.0",
    "record": ">=4.0.0 <5.0.0",
    "simple-json": ">=9.0.0 <10.0.0",
    "strings": ">=6.0.1 <7.0.0",
    "transformers": ">=6.0.0 <7.0.0",
    "tuples": ">=7.0.0 <8.0.0",
    "typelevel-prelude": ">=7.0.0 <8.0.0",
    "unsafe-coerce": ">=6.0.0 <7.0.0"
  }
}```

@pacchettibotti
Copy link
Contributor

Package is verified! Uploading it to the storage backend...

@pacchettibotti
Copy link
Contributor

Successfully uploaded package to the registry! 🎉 🚀

@pacchettibotti
Copy link
Contributor

Successfully uploaded package docs to Pursuit! 🎉 🚀

@pacchettibotti
Copy link
Contributor

Mirrored registry operation to the legacy registry.

@f-f
Copy link
Member

f-f commented Apr 3, 2024

@cakekindel you can use spago publish if you'd like to avoid the back and forth with the bot. The GitHub API will stay up for the time being, but we'll eventually switch to only supporting the publish command.

@cakekindel
Copy link
Author

Was going to say, I hope there's a "bozo alert" discord bot that sends messages when someone has more than 5 back-and-forths with this bot lol

@f-f
Copy link
Member

f-f commented Apr 4, 2024

I do get notifications for these yeah 😄

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

No branches or pull requests

3 participants