Skip to content

updatecli: Prevent gh/XDG state files from polluting autocreated PRs#10548

Open
mgfritch wants to merge 1 commit into
rancher:masterfrom
mgfritch:updatecli-gh-xdg-device-id-file
Open

updatecli: Prevent gh/XDG state files from polluting autocreated PRs#10548
mgfritch wants to merge 1 commit into
rancher:masterfrom
mgfritch:updatecli-gh-xdg-device-id-file

Conversation

@mgfritch

@mgfritch mgfritch commented Jun 5, 2026

Copy link
Copy Markdown
Contributor

Prevent XDG state/config/data/cache dirs that tools like gh may write into the worktree
Fixes: #10529 (comment)

DISCLAIMER: No AI was harmed in the creation of this PR (thanks co-pilot)!

Prevent XDG state/config/data/cache dirs that tools like `gh` may write into the worktree

Signed-off-by: Michael Fritch <mfritch@suse.com>
@mgfritch mgfritch requested a review from a team as a code owner June 5, 2026 05:53
@mgfritch mgfritch requested a review from rbrtbnfgl June 5, 2026 05:55
@codecov-commenter

codecov-commenter commented Jun 5, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 19.82%. Comparing base (72a39ae) to head (4a690a1).
⚠️ Report is 4 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master   #10548   +/-   ##
=======================================
  Coverage   19.82%   19.82%           
=======================================
  Files          50       50           
  Lines        4136     4136           
=======================================
  Hits          820      820           
  Misses       3265     3265           
  Partials       51       51           
Flag Coverage Δ
inttests 8.78% <ø> (ø)
unittests 14.76% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.


update_chart_images_windows() {
app_version="${2%??}"
tempdir=$(mktemp -d)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we don't need the tempdir anymore

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yup! it's been removed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants