mirror of
https://github.com/nektos/act.git
synced 2026-04-26 01:15:51 +03:00
[PR #2195] [MERGED] feat: correctly use the xdg library, which has the side effect to fix the config survey #2317
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#2317
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?
📋 Pull Request Information
Original PR: https://github.com/nektos/act/pull/2195
Author: @mrnossiom
Created: 2/1/2024
Status: ✅ Merged
Merged: 2/1/2024
Merged by: @cplee
Base:
master← Head:fix/xdg-parent-folder-crashes-survey📝 Commits (2)
7b0fac2feat: correctly use the xdg library, which has the side effect to fix the config survey0dfaa43fix: use HOME config path when xdg-like path use fails📊 Changes
1 file changed (+12 additions, -14 deletions)
View changed files
📝
cmd/root.go(+12 -14)📄 Description
Fixes: #2193
It worked before my PR merge commit, and does not after... I guess it's my fault 😄.
Fix
The
os.Createcall indefaultImageSurveyerrors in case we could not create the file, like in the situation the parent folder wasn't created.Also
configLocationswould setactrcXdgonly if a file was actually found. So the path would be empty on first launch.Instead of manually creating the parent folder, I went the way of modifying
configLocationsto include the correct xdg lib calls that takes cares of creating the folder and returning the right path.Thanks and sorry again
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.