feat(platforms): fall back to ubuntu-latest image for ubuntu-slim runner#6100
Open
toller892 wants to merge 1 commit into
Open
feat(platforms): fall back to ubuntu-latest image for ubuntu-slim runner#6100toller892 wants to merge 1 commit into
toller892 wants to merge 1 commit into
Conversation
GitHub Actions' ubuntu-slim runner (1-vCPU Linux runner, in public preview since 2025-10-28) uses the same base distro as ubuntu-latest, so act should resolve it to the same default image instead of printing 'Skipping unsupported platform'. Users can still override via -P ubuntu-slim=... like any other platform. Fixes nektos#6003
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
GitHub Actions'
ubuntu-slim1-vCPU runner (in public preview since 2025-10-28) uses the same base distro asubuntu-latest. Today act prints:and the user has to manually pass
-P ubuntu-slim=ghcr.io/catthehacker/ubuntu:act-latestevery time, which defeats the point of having a fallback for "latest" Ubuntu runners.This change adds
ubuntu-slimto the default platform map incmd/platforms.go, resolving it to the same image asubuntu-latest(node:16-buster-slim). Users can still override it via-P ubuntu-slim=...exactly like the other platforms —newPlatforms()already supports overriding any default.Changes
cmd/platforms.go: addubuntu-slim→node:16-buster-slimto the default platforms map (1 line).cmd/platforms_test.go(new): two unit tests covering the default and the user-override path.Testing
go vet ./cmd/passes. Pre-existingTestFlags/TestFlag-bug-reportfailure is unrelated (requires a running Docker daemon).Closes #6003