[GH-ISSUE #1960] rustup not installed in ubuntu full-latest #938

Closed
opened 2026-03-01 21:47:34 +03:00 by kerem · 5 comments
Owner

Originally created by @budde25 on GitHub (Aug 10, 2023).
Original GitHub issue: https://github.com/nektos/act/issues/1960

Bug report info

act version:            0.2.49
GOOS:                   darwin
GOARCH:                 amd64
NumCPU:                 16
Docker host:            DOCKER_HOST environment variable is not set
Sockets found:
	/var/run/docker.sock
Config files:
	/Users/budd/.actrc:
		-P ubuntu-latest=catthehacker/ubuntu:full-latest
		-P ubuntu-20.04=catthehacker/ubuntu:full-20.04
		-P ubuntu-18.04=catthehacker/ubuntu:full-18.04
Build info:
	Go version:            go1.20.6
	Module path:           command-line-arguments
	Main version:
	Main path:
	Main checksum:
	Build settings:
		-buildmode:           exe
		-compiler:            gc
		-ldflags:             -X main.version=0.2.49
		CGO_ENABLED:          1
		CGO_CFLAGS:
		CGO_CPPFLAGS:
		CGO_CXXFLAGS:
		CGO_LDFLAGS:
		GOARCH:               amd64
		GOOS:                 darwin
		GOAMD64:              v1
Docker Engine:
	Engine version:        23.0.6
	Engine runtime:        runc
	Cgroup version:        1
	Cgroup driver:         cgroupfs
	Storage driver:        overlay2
	Registry URI:          https://index.docker.io/v1/
	OS:                    Alpine Linux v3.18
	OS type:               linux
	OS version:            3.18.0
	OS arch:               x86_64
	OS kernel:             6.1.32-0-virt
	OS CPU:                2
	OS memory:             5937 MB
	Security options:
		name=seccomp,profile=builtin

Command used with act

act

Describe issue

rustup should be installed on the full image

No response

Workflow content

on:
  push:
    tags:
      - '*-?v[0-9]+*'

jobs:
  # Create the Github Release™ so the packages have something to be uploaded to
  create-release:
    runs-on: ubuntu-latest
    outputs:
      has-releases: ${{ steps.create-release.outputs.has-releases }}
    env:
      GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
    steps:
      - uses: actions/checkout@v3
      - name: Install Rust
        run: rustup update stable --no-self-update && rustup default stable

Relevant log output

[Release/create-release] 🚀  Start image=catthehacker/ubuntu:full-latest
[Release/create-release]   🐳  docker pull image=catthehacker/ubuntu:full-latest platform= username= forcePull=true
[Release/create-release]   🐳  docker create image=catthehacker/ubuntu:full-latest platform= entrypoint=["tail" "-f" "/dev/null"] cmd=[]
[Release/create-release]   🐳  docker run image=catthehacker/ubuntu:full-latest platform= entrypoint=["tail" "-f" "/dev/null"] cmd=[]
[Release/create-release] ⭐ Run Main actions/checkout@v3
[Release/create-release]   🐳  docker cp src=/Users/budd/Code/rust-stuff/. dst=/Users/budd/Code/rust-stuff
[Release/create-release]   ✅  Success - Main actions/checkout@v3
[Release/create-release] ⭐ Run Main Install Rust
[Release/create-release]   🐳  docker exec cmd=[bash --noprofile --norc -e -o pipefail /var/run/act/workflow/1] user= workdir=
| /var/run/act/workflow/1: line 2: rustup: command not found
[Release/create-release]   ❌  Failure - Main Install Rust
[Release/create-release] exitcode '127': command not found, please refer to https://github.com/nektos/act/issues/107 for more information
[Release/create-release] 🏁  Job failed
Error: Job 'create-release' failed

Additional information

No response

Originally created by @budde25 on GitHub (Aug 10, 2023). Original GitHub issue: https://github.com/nektos/act/issues/1960 ### Bug report info ```plain text act version: 0.2.49 GOOS: darwin GOARCH: amd64 NumCPU: 16 Docker host: DOCKER_HOST environment variable is not set Sockets found: /var/run/docker.sock Config files: /Users/budd/.actrc: -P ubuntu-latest=catthehacker/ubuntu:full-latest -P ubuntu-20.04=catthehacker/ubuntu:full-20.04 -P ubuntu-18.04=catthehacker/ubuntu:full-18.04 Build info: Go version: go1.20.6 Module path: command-line-arguments Main version: Main path: Main checksum: Build settings: -buildmode: exe -compiler: gc -ldflags: -X main.version=0.2.49 CGO_ENABLED: 1 CGO_CFLAGS: CGO_CPPFLAGS: CGO_CXXFLAGS: CGO_LDFLAGS: GOARCH: amd64 GOOS: darwin GOAMD64: v1 Docker Engine: Engine version: 23.0.6 Engine runtime: runc Cgroup version: 1 Cgroup driver: cgroupfs Storage driver: overlay2 Registry URI: https://index.docker.io/v1/ OS: Alpine Linux v3.18 OS type: linux OS version: 3.18.0 OS arch: x86_64 OS kernel: 6.1.32-0-virt OS CPU: 2 OS memory: 5937 MB Security options: name=seccomp,profile=builtin ``` ### Command used with act ```sh act ``` ### Describe issue rustup should be installed on the full image ### Link to GitHub repository _No response_ ### Workflow content ```yml on: push: tags: - '*-?v[0-9]+*' jobs: # Create the Github Release™ so the packages have something to be uploaded to create-release: runs-on: ubuntu-latest outputs: has-releases: ${{ steps.create-release.outputs.has-releases }} env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} steps: - uses: actions/checkout@v3 - name: Install Rust run: rustup update stable --no-self-update && rustup default stable ``` ### Relevant log output ```sh [Release/create-release] 🚀 Start image=catthehacker/ubuntu:full-latest [Release/create-release] 🐳 docker pull image=catthehacker/ubuntu:full-latest platform= username= forcePull=true [Release/create-release] 🐳 docker create image=catthehacker/ubuntu:full-latest platform= entrypoint=["tail" "-f" "/dev/null"] cmd=[] [Release/create-release] 🐳 docker run image=catthehacker/ubuntu:full-latest platform= entrypoint=["tail" "-f" "/dev/null"] cmd=[] [Release/create-release] ⭐ Run Main actions/checkout@v3 [Release/create-release] 🐳 docker cp src=/Users/budd/Code/rust-stuff/. dst=/Users/budd/Code/rust-stuff [Release/create-release] ✅ Success - Main actions/checkout@v3 [Release/create-release] ⭐ Run Main Install Rust [Release/create-release] 🐳 docker exec cmd=[bash --noprofile --norc -e -o pipefail /var/run/act/workflow/1] user= workdir= | /var/run/act/workflow/1: line 2: rustup: command not found [Release/create-release] ❌ Failure - Main Install Rust [Release/create-release] exitcode '127': command not found, please refer to https://github.com/nektos/act/issues/107 for more information [Release/create-release] 🏁 Job failed Error: Job 'create-release' failed ``` ### Additional information _No response_
kerem 2026-03-01 21:47:34 +03:00
Author
Owner

@GuessWhoSamFoo commented on GitHub (Aug 13, 2023):

For some reason, this fails on catthehacker/ubuntu:full-latest although working on catthehacker/ubuntu:rust-latest

[rust/rust-test]   🐳  docker pull image=catthehacker/ubuntu:rust-latest platform= username= forcePull=true
[rust/rust-test] using DockerAuthConfig authentication for docker pull
[rust/rust-test]   🐳  docker create image=catthehacker/ubuntu:rust-latest platform= entrypoint=["tail" "-f" "/dev/null"] cmd=[]
[rust/rust-test]   🐳  docker run image=catthehacker/ubuntu:rust-latest platform= entrypoint=["tail" "-f" "/dev/null"] cmd=[]
[rust/rust-test] ⭐ Run Main actions/checkout@v3
[rust/rust-test]   🐳  docker cp src=/home/sfoo/act_examples/. dst=/home/sfoo/act_examples
[rust/rust-test]   ✅  Success - Main actions/checkout@v3
[rust/rust-test] ⭐ Run Main Update
[rust/rust-test]   🐳  docker exec cmd=[bash --noprofile --norc -e -o pipefail /var/run/act/workflow/1] user= workdir=
| /usr/share/rust/.cargo/bin/rustup
| info: syncing channel updates for 'stable-x86_64-unknown-linux-gnu'
| info: latest update on 2023-08-03, rust version 1.71.1 (eb26296b5 2023-08-03)
| info: downloading component 'clippy'
| info: downloading component 'rustfmt'
| info: downloading component 'cargo'
| info: downloading component 'rust-std'
 26.1 MiB /  26.1 MiB (100 %)  23.2 MiB/s in  1s ETA:  0s
| info: downloading component 'rustc'
 63.5 MiB /  63.5 MiB (100 %)  23.2 MiB/s in  2s ETA:  0s
| info: removing previous version of component 'clippy'
| info: removing previous version of component 'rustfmt'
| info: removing previous version of component 'cargo'
| info: removing previous version of component 'rust-std'
| info: removing previous version of component 'rustc'
| info: installing component 'clippy'
| info: installing component 'rustfmt'
| info: installing component 'cargo'
| info: installing component 'rust-std'
 26.1 MiB /  26.1 MiB (100 %)  22.1 MiB/s in  1s ETA:  0s
| info: installing component 'rustc'
 63.5 MiB /  63.5 MiB (100 %)  25.1 MiB/s in  2s ETA:  0s
| 
|   stable-x86_64-unknown-linux-gnu updated - rustc 1.71.1 (eb26296b5 2023-08-03) (from rustc 1.71.0 (8ede3aae2 2023-07-12))
| 
| info: using existing install for 'stable-x86_64-unknown-linux-gnu'
| info: default toolchain set to 'stable-x86_64-unknown-linux-gnu'
| 
|   stable-x86_64-unknown-linux-gnu unchanged - rustc 1.71.1 (eb26296b5 2023-08-03)
| 
[rust/rust-test]   ✅  Success - Main Update
[rust/rust-test] 🏁  Job succeeded

Although it should be available in full-latest as well...

$ docker run -it ghcr.io/catthehacker/ubuntu:full-latest /bin/sh
root@1e55924d6c63:/tmp# which rustup
/usr/share/rust/.cargo/bin/rustup
<!-- gh-comment-id:1676460845 --> @GuessWhoSamFoo commented on GitHub (Aug 13, 2023): For some reason, this fails on `catthehacker/ubuntu:full-latest` although working on `catthehacker/ubuntu:rust-latest` ```[rust/rust-test] 🚀 Start image=catthehacker/ubuntu:rust-latest [rust/rust-test] 🐳 docker pull image=catthehacker/ubuntu:rust-latest platform= username= forcePull=true [rust/rust-test] using DockerAuthConfig authentication for docker pull [rust/rust-test] 🐳 docker create image=catthehacker/ubuntu:rust-latest platform= entrypoint=["tail" "-f" "/dev/null"] cmd=[] [rust/rust-test] 🐳 docker run image=catthehacker/ubuntu:rust-latest platform= entrypoint=["tail" "-f" "/dev/null"] cmd=[] [rust/rust-test] ⭐ Run Main actions/checkout@v3 [rust/rust-test] 🐳 docker cp src=/home/sfoo/act_examples/. dst=/home/sfoo/act_examples [rust/rust-test] ✅ Success - Main actions/checkout@v3 [rust/rust-test] ⭐ Run Main Update [rust/rust-test] 🐳 docker exec cmd=[bash --noprofile --norc -e -o pipefail /var/run/act/workflow/1] user= workdir= | /usr/share/rust/.cargo/bin/rustup | info: syncing channel updates for 'stable-x86_64-unknown-linux-gnu' | info: latest update on 2023-08-03, rust version 1.71.1 (eb26296b5 2023-08-03) | info: downloading component 'clippy' | info: downloading component 'rustfmt' | info: downloading component 'cargo' | info: downloading component 'rust-std' 26.1 MiB / 26.1 MiB (100 %) 23.2 MiB/s in 1s ETA: 0s | info: downloading component 'rustc' 63.5 MiB / 63.5 MiB (100 %) 23.2 MiB/s in 2s ETA: 0s | info: removing previous version of component 'clippy' | info: removing previous version of component 'rustfmt' | info: removing previous version of component 'cargo' | info: removing previous version of component 'rust-std' | info: removing previous version of component 'rustc' | info: installing component 'clippy' | info: installing component 'rustfmt' | info: installing component 'cargo' | info: installing component 'rust-std' 26.1 MiB / 26.1 MiB (100 %) 22.1 MiB/s in 1s ETA: 0s | info: installing component 'rustc' 63.5 MiB / 63.5 MiB (100 %) 25.1 MiB/s in 2s ETA: 0s | | stable-x86_64-unknown-linux-gnu updated - rustc 1.71.1 (eb26296b5 2023-08-03) (from rustc 1.71.0 (8ede3aae2 2023-07-12)) | | info: using existing install for 'stable-x86_64-unknown-linux-gnu' | info: default toolchain set to 'stable-x86_64-unknown-linux-gnu' | | stable-x86_64-unknown-linux-gnu unchanged - rustc 1.71.1 (eb26296b5 2023-08-03) | [rust/rust-test] ✅ Success - Main Update [rust/rust-test] 🏁 Job succeeded ``` Although it should be available in `full-latest` as well... ``` $ docker run -it ghcr.io/catthehacker/ubuntu:full-latest /bin/sh root@1e55924d6c63:/tmp# which rustup /usr/share/rust/.cargo/bin/rustup ```
Author
Owner

@ChristopherHX commented on GitHub (Aug 13, 2023):

full-latest is unmaintained, we need to update the docs...(has been manually updated by a former active maintainer)

The rust flavor image had received adjustments due to my rewrite of env handling. Act was previously reading /etc/environment the full impact to full-latest tag has not been tested by me

<!-- gh-comment-id:1676461902 --> @ChristopherHX commented on GitHub (Aug 13, 2023): full-latest is unmaintained, we need to update the docs...(has been manually updated by a former active maintainer) The rust flavor image had received adjustments due to my rewrite of env handling. Act was previously reading /etc/environment the full impact to full-latest tag has not been tested by me
Author
Owner

@github-actions[bot] commented on GitHub (Feb 10, 2024):

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

<!-- gh-comment-id:1936759252 --> @github-actions[bot] commented on GitHub (Feb 10, 2024): Issue is stale and will be closed in 14 days unless there is new activity
Author
Owner

@NicolasPL64 commented on GitHub (Oct 30, 2024):

@GuessWhoSamFoo

For some reason, this fails on catthehacker/ubuntu:full-latest although working on catthehacker/ubuntu:rust-latest

Tried it and still got the error /var/run/act/workflow/2: line 2: rustup: command not found. Not sure what else to do. Did someone from this conversation get it working?

<!-- gh-comment-id:2447305703 --> @NicolasPL64 commented on GitHub (Oct 30, 2024): @GuessWhoSamFoo > For some reason, this fails on catthehacker/ubuntu:full-latest although working on catthehacker/ubuntu:rust-latest Tried it and still got the error `/var/run/act/workflow/2: line 2: rustup: command not found`. Not sure what else to do. Did someone from this conversation get it working?
Author
Owner

@GuessWhoSamFoo commented on GitHub (Oct 30, 2024):

@NicolasPL64 Haven't been up to date with the project so unsure about maintenance of runners these days. Installing the dependency at runtime or building your own image would be potential options

<!-- gh-comment-id:2447604606 --> @GuessWhoSamFoo commented on GitHub (Oct 30, 2024): @NicolasPL64 Haven't been up to date with the project so unsure about maintenance of runners these days. Installing the dependency at runtime or building your own image would be potential options
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#938
No description provided.