Skip to content

Server not receiving information to compute hash #430

@b-rodrigues

Description

@b-rodrigues

The server is currently not receiving the right info required to compute the hash if nix is not present on the system. The right result is returned via curl though:

 curl -X GET "https://git2nixsha.dev/hash?repo_url=https%3A%2F%2Fgithub.com%2Feliocamp%2FmetR&commit=1dd5d391d5da6a80fde03301671aea5582643914" -H  "accept: */*"

but unit tests on a system without Nix fail:

── Error ('test-fetchers.R:131:3'): Test fetchgits works when PR is provided in a remote package, but does not use it ──
Error: Error: Request `curl::curl_fetch_memory(url = 'https://git2nixsha.dev/hash?repo_url=&commit=')` failed:
 HTTP response code said error [git2nixsha.dev]: The requested URL returned error: 500
If it's a GitHub repo, check the url and commit.
Are these correct? If it's an archived CRAN package, check the name
of the package and the version number.

see: https://github.com/ropensci/rix/actions/runs/13562423321/job/37911046377

fyi @mihem perhaps you see where this is coming from?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions