[GH-ISSUE #622] setup-python@v2: Unable to resolve v2: reference not found error #408

Closed
opened 2026-03-01 21:43:06 +03:00 by kerem · 2 comments
Owner

Originally created by @obzenner on GitHub (Apr 16, 2021).
Original GitHub issue: https://github.com/nektos/act/issues/622

Act version

$ act --version
act version 0.2.21

Runner: -P ubuntu-18.04=catthehacker/ubuntu:act-18.04

macOS Big Sur 11.2.3
Running in console

Expected behaviour

Should install setup-python@v2

Actual behaviour

image

Workflow and/or repository

name: Master Build & Publish to Dev

on:
  push:
    branches:
      - master

jobs:

  build-service-container:
    name: Master - Build MSP Service Container
    runs-on: ubuntu-latest

    env:
      DEFAULT_PYTHON: 3.8
    
    steps:
      - name: Checkout source Git repo
        uses: actions/checkout@v2

      # -- Set-up GitHub Pipeline Library --

      - name: Set up Python ${{ env.DEFAULT_PYTHON }}
        id: python
        uses: actions/setup-python@v2
        with:
          python-version: ${{ env.DEFAULT_PYTHON }}

on: [push]

Is the issue happening because we are running it on macOS? Any other feedback is appreciated!

Originally created by @obzenner on GitHub (Apr 16, 2021). Original GitHub issue: https://github.com/nektos/act/issues/622 ## Act version ``` $ act --version act version 0.2.21 Runner: -P ubuntu-18.04=catthehacker/ubuntu:act-18.04 macOS Big Sur 11.2.3 Running in console ``` ## Expected behaviour Should install `setup-python@v2` ## Actual behaviour ![image](https://user-images.githubusercontent.com/3275754/115022842-3f6cc580-9ebe-11eb-952b-73242e75883d.png) ## Workflow and/or repository ``` name: Master Build & Publish to Dev on: push: branches: - master jobs: build-service-container: name: Master - Build MSP Service Container runs-on: ubuntu-latest env: DEFAULT_PYTHON: 3.8 steps: - name: Checkout source Git repo uses: actions/checkout@v2 # -- Set-up GitHub Pipeline Library -- - name: Set up Python ${{ env.DEFAULT_PYTHON }} id: python uses: actions/setup-python@v2 with: python-version: ${{ env.DEFAULT_PYTHON }} ``` on: [push] Is the issue happening because we are running it on macOS? Any other feedback is appreciated!
kerem 2026-03-01 21:43:06 +03:00
Author
Owner

@catthehacker commented on GitHub (Apr 16, 2021):

@obzenner setup-python@v2 won't work on micro image. you have to use at least medium
You are replacing wrong platform, in workflow you have ubuntu-latest so you have to run act with -P ubuntu-latest=<image>

<!-- gh-comment-id:821163870 --> @catthehacker commented on GitHub (Apr 16, 2021): @obzenner ~~`setup-python@v2` won't work on `micro` image. you have to use at least `medium`~~ You are replacing wrong platform, in workflow you have `ubuntu-latest` so you have to run `act` with `-P ubuntu-latest=<image>`
Author
Owner

@github-actions[bot] commented on GitHub (May 17, 2021):

Issue is stale and will be closed in 14 days unless there is new activity

<!-- gh-comment-id:841900078 --> @github-actions[bot] commented on GitHub (May 17, 2021): Issue is stale and will be closed in 14 days unless there is new activity
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/act#408
No description provided.