Skip to content

ImageOS and ImageVersion environment variables aren't populated in ubuntu24-full-x64 #25

@MarkIannucci

Description

@MarkIannucci

I noticed that ImageOS and ImageVersion environment variables are not populated in the ubuntu24-full-x64 image.

It looks like we're trying to do that in the code however, so I'm not sure why it doesn't work:

# Set ImageVersion and ImageOS env variables
set_etc_environment_variable "ImageVersion" "${IMAGE_VERSION}"
set_etc_environment_variable "ImageOS" "${IMAGE_OS}"

I found this issue because the erlef/setup-beam@v1 action will throw the following error when you switch it from ubuntu-latest to a runs-on runner using the ubuntu24-full-x64 image:

Tried to map a target OS from env. variable 'ImageOS' (got undefined), but failed. If you're using a self-hosted runner, you should set 'env': 'ImageOS': ... to one of the following: ['ubuntu18', 'ubuntu20', 'ubuntu22', 'ubuntu24', 'win19', 'win22']

Unfortunately, I can't easily share the repro because it is closed code. That said if we need one, I'm happy to produce it.

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