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

generate-recipe fails for CRAN's rstanarm #1202

Open
andystopia opened this issue Nov 17, 2024 · 1 comment
Open

generate-recipe fails for CRAN's rstanarm #1202

andystopia opened this issue Nov 17, 2024 · 1 comment

Comments

@andystopia
Copy link

rattler-build generate-recipe cran -w rstanarm provides:

Generating R recipe for rstanarm
Error:   × error decoding response body
  ╰─▶ missing field `Title` at line 45 column 1

If I have done my homework correctly, it seems like this repository queries the following URL: https://cran.r-universe.dev/api/packages/rstanarm. The response also doesn't provide dependencies, like a working package would, at a first glance. As of today that response JSON right now is provided at the bottom of this issue. It does list key _type as "failure".

This, admittedly does appear to be an upstream issue with whatever is generating info for r-universe. I can't figure out why this is, (I gave up after 8000 lines of warnings in CI).

Is there a way to generate a recipe straight from the DESCRIPTION file (which seems to have a Title field), without proxying through r-universe?

{
  "_type": "failure",
  "_user": "cran",
  "Package": "rstanarm",
  "Maintainer": "Ben Goodrich <[email protected]>",
  "_published": "2024-11-17T03:09:19.814Z",
  "_upstream": "https://github.com/cran/rstanarm",
  "_registered": true,
  "_commit": {
    "id": "f3754c125dbe8e2e1c9771c38c556cc53db5fa6a",
    "author": "Ben Goodrich <[email protected]>",
    "committer": "cran-robot <[email protected]>",
    "message": "version 2.32.1\n",
    "time": 1705632514
  },
  "_maintainer": {
    "name": "Ben Goodrich",
    "email": "[email protected]",
    "login": "bgoodri",
    "uuid": 3386282
  },
  "_distro": "noble",
  "_host": "GitHub-Actions",
  "_buildurl": "https://github.com/r-universe/cran/actions/runs/11831747678",
  "_created": "2024-11-17T03:09:19.815Z",
  "_owner": "cran",
  "_selfowned": true,
  "_universes": [
    "cran"
  ],
  "_nocasepkg": "rstanarm",
  "_failure": {
    "version": "2.32.1",
    "commit": {
      "id": "f3754c125dbe8e2e1c9771c38c556cc53db5fa6a",
      "author": "Ben Goodrich <[email protected]>",
      "committer": "cran-robot <[email protected]>",
      "message": "version 2.32.1\n",
      "time": 1705632514
    },
    "buildurl": "https://github.com/r-universe/cran/actions/runs/11831747678",
    "date": "2024-11-17T03:09:19.815Z"
  },
  "_binaries": []
}
@andystopia andystopia changed the title generate-recipe fails on for CRAN's rstanarm generate-recipe fails for CRAN's rstanarm Nov 17, 2024
@wolfv
Copy link
Member

wolfv commented Dec 4, 2024

Hi @andystopia - you could try grayskull and the automatic recipe conversion tool to see if that gives you a good starting point for this recipe :)

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

2 participants