mirror of
https://github.com/nektos/act.git
synced 2026-04-26 09:25:54 +03:00
[GH-ISSUE #1295] act doesn't seem to work with actions-rs/toolchain@v1 #702
Labels
No labels
area/action
area/cli
area/docs
area/image
area/runner
area/workflow
backlog
confirmed/not-planned
kind/bug
kind/discussion
kind/external
kind/feature-request
kind/question
meta/duplicate
meta/invalid
meta/need-more-info
meta/resolved
meta/wontfix
meta/workaround
needs-work
pull-request
review/not-planned
size/M
size/XL
size/XXL
stale
stale-exempt
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/act#702
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @alexjyong on GitHub (Aug 8, 2022).
Original GitHub issue: https://github.com/nektos/act/issues/1295
Bug report info
Command used with act
Describe issue
I'm trying to run a github action to build a package in my repo. This process requests some Rust tools, so I'm using the actions-rs/toolchain@v1 with Github Actions.
This works on Github, but when I run this locally, I get this error:
error: rustup is not installed at '/root/.cargo'I'll paste full logs in the log output section. Not too sure what is going on here.
Link to GitHub repository
https://github.com/alexjyong/synapse-wrapper
Workflow content
Relevant log output
Additional information
No response
@NicolaLS commented on GitHub (Aug 8, 2022):
I think I had the same issue on ubuntu but now on fedora it works for me
@alexjyong commented on GitHub (Aug 8, 2022):
This happens on macOS as well:
@NicolaLS do you know what you did with fedora to get it to work? Or did it Just Work™?
@NicolaLS commented on GitHub (Aug 8, 2022):
It just worked, sorry. I remember I tried everything on ubuntu like installing the toolchain manualy in the docker container with
exec(which was stupid), but I just couldn't get it to workI just found this idk if that can help you:
act -P ubuntu-latest=ghcr.io/catthehacker/ubuntu:rust-latest@NicolaLS commented on GitHub (Aug 8, 2022):
Ok this is crazy it worked for me but I had another problem:
when I tried to solve it (
sudo apt-get ..) I got the same error that you have, now I tried to get it back to my old problem by removing the installation, I also completely removed all docker stuff and cleaned everything..But the error won't go away now (the same that you have) I am so confused right now.....@alexjyong commented on GitHub (Aug 8, 2022):
I tried out using the ubuntu:rust-latest and now I get a new error:
@NicolaLS commented on GitHub (Aug 8, 2022):
@alexjyong if I try it with that I get:
@github-actions[bot] commented on GitHub (Sep 8, 2022):
Issue is stale and will be closed in 14 days unless there is new activity
@Elendol commented on GitHub (Sep 10, 2022):
I have the same issue, I tried to use the rust image but the rust used by the actions after
actions-rs/toolchain@v1do not use the one installed via this action but rather the one from the image. For examplecrate-ci/typos@masterrequires rust at least 1.60.0 but complain of only finding 1.58.0 even though I explicitly ask the toolchain action to use 1.60.0 (same with stable).@NicolaLS commented on GitHub (Sep 16, 2022):
I saw rust-bitcoin having an act setup but didn't have time to look at it yet (in case somebody wants to investigate how they do it)
@Bjohnson131 commented on GitHub (Oct 11, 2022):
Same issue here.
@github-actions[bot] commented on GitHub (Nov 11, 2022):
Issue is stale and will be closed in 14 days unless there is new activity
@mcintyre94 commented on GitHub (Nov 25, 2022):
I think the issue here is basically that
ubuntu-latesthasrustupinstalled in Github, but not available when running inactSo if you have something like
run: rustup toolchain install stable --profile minimal(or any action that's basically doing that under the hood) it errors in act but works in Github.@github-actions[bot] commented on GitHub (Dec 26, 2022):
Issue is stale and will be closed in 14 days unless there is new activity
@djhunter67 commented on GitHub (Aug 25, 2023):
This just
SOLVEDthecurlissue with the Rust CI usingact! Thank you.