Skip to content

RIG_PLATFORM to set distro not working out of the box #191

Closed
@eliocamp

Description

@eliocamp

It seems that the RIG_PLATFORM environment variable is not being used by rig add

elio@vm:~$ echo $RIG_PLATFORM
ubuntu-22.04
elio@vm:~$ rig system detect-platform
Detected platform:
Architecture: x86_64
OS:           linux
Distribution: ubuntu
Version:      22.04
PPM support:  true
PPM URL:      https://packagemanager.posit.co/cran/__linux__/jammy/latest
elio@vm:~$ rig add 4.3.1
[INFO] Running `sudo` for adding new R versions. This might need your password.
[ERROR] Failed to resolve R version: Cannot download JSON: HTTP status client error (404 Not Found) for url (https://api.r-hub.io/rversions/resolve/4.3.1/linux-elementary-7.1/x86_64)

I was able to solve the issue using sudo -E rig add 4.3.1. The -E flag preserves environment variables.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugan unexpected problem or unintended behavior

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions