mirror of
https://github.com/nektos/act.git
synced 2026-04-26 01:15:51 +03:00
[GH-ISSUE #2219] Can't figure out how to reset image choice. #1047
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#1047
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 @luketpeterson on GitHub (Feb 14, 2024).
Original GitHub issue: https://github.com/nektos/act/issues/2219
Bug report info
When I first ran
act, I selected the "Medium" image. That failed because it couldn't find a satisfactory Python. So I figured I'd try a "Large" image. But I can't figure out how to reset that preference.Things I've tried:
invoking
actwithact -P image=catthehacker/ubuntu:full-22.04seems to pull the medium images anyway.I've tried deleting the medium images from docker, but it just re-pulls them without asking again.
I've tried deleting everything I could find associated with
acton the hope that it would ask again when I reinstalled it, but that preference is still hiding somewhere...Describe issue
I've spent 30 minutes reading documentation, forums, and reinstalling stuff trying to get back to the "What size image do you want to use?" prompt that it asked me when I first installed
act.Link to GitHub repository
No response
Workflow content
Relevant log output
Additional information
No response
@luketpeterson commented on GitHub (Feb 14, 2024):
I think it does what I want when I manually specify each image in the invocation. ie
Is there a way to make this the default?
@ChristopherHX commented on GitHub (Feb 14, 2024):
There are multiple locations where you can change default cli flags, a good point would be to add it to the act userguide
./.actrcFor project specfic settings~/.actrcFor global settings (default location of old versions of act,~is your userprofile/home folder)%localappdata%/act/actrc(Windows, Don't remember 100%ly)~/Library/Preferences/act/actrc(macOS, A guess, not tested yet)~/.config/act/actrc(macOS, A guess, not tested yet)More here
https://github.com/adrg/xdgconfig path subpath isact/actrcThe content for your preference would be added to a actrc file like
The format of this file is just
-flag++argument+ newline (don't use any kind of quotes)We should really make act log all actrc locations if not already.
If you would provide
act -P image=catthehacker/ubuntu:full-22.04 -vthen you might even see which actrc is loaded in the log, delete it to get the survey again.@mitchellnemitz commented on GitHub (Feb 14, 2024):
On macOS, the config I selected on first run seems to have been saved to
~/Library/Application Support/act/actrcwhich I was able to identify from perusing the base directories here: https://github.com/adrg/xdg?tab=readme-ov-file#xdg-base-directoryHowever, this took me a long time to find, as the output of
actafter selecting an option includes a dead link and only mentions~/.actrcand nothing about XDG directory structures:If I can get things up and running I'll try to submit a PR to update the documentation.
@kevinbluer commented on GitHub (Feb 16, 2024):
Thanks @mitchellnemitz, I'd been digging around for it with no luck!
@ubrmnsh commented on GitHub (Mar 12, 2024):
for macOS deleting actrc at
/Users/[username]/Library/Application Support/actgets the work done.@zburgermeiszter commented on GitHub (Apr 17, 2024):
It worked thanks.
It would be great to have a setting command for changing this.
@ubrmnsh commented on GitHub (Apr 17, 2024):
i'll try to raise a pr, you can also if you want to :)
@BinToss commented on GitHub (Apr 21, 2024):
I found
actrcat%LocalAppData%/act/actrcon Windows@matthall3531 commented on GitHub (May 30, 2024):
I found
actrcat./.config/act/actrcon Ubuntu.@sahilrajput03 commented on GitHub (Jun 20, 2024):
rm /Users/$USER/Library/Application\ Support/act/actrcUsing environment variable also work like that.
@nick42d commented on GitHub (Jun 27, 2024):
Had the same issue here. Where is the source code for the book located?
@dodinh commented on GitHub (Jun 27, 2024):
If - like me - you're running act as sudo (because docker needs sudo on my system), the file to remove/edit is
/root/.config/act/actrc.@christhomas commented on GitHub (Jan 12, 2025):
If I can use a command line parameter to set these images, why can't I use another command line parameter to unset it, defaulting it back to whatever act uses before it's manually configured? Wouldn't that make more sense than needing to go digging through my filesystem to delete files like the actrc file?
Also, I think it's a better option to stick to using .dotfiles in the home directory, or better yet, the .config/act location as it mimics a lot of unix tools much better than putting things into macos specific locations where the configuration can't be easily found until you find a bug ticket like this one...
@boompig commented on GitHub (Jun 17, 2025):
Is there any update on this issue? On Mac at least, the
-Poption seems to be overwritten if this file is present.