Skip to content

[repo-assist] fix: honor --redownload for explicit AUR targets - #2975

Draft
github-actions[bot] wants to merge 1 commit into
nextfrom
repo-assist/fix-issue-2973-redownload-targets-adab60c183d0fe94
Draft

[repo-assist] fix: honor --redownload for explicit AUR targets#2975
github-actions[bot] wants to merge 1 commit into
nextfrom
repo-assist/fix-issue-2973-redownload-targets-adab60c183d0fe94

Conversation

@github-actions

Copy link
Copy Markdown
Contributor

🤖 This PR was prepared by Repo Assist, an automated AI assistant for this repository.

Closes #2973

Root cause

The new workspace preparer only treated redownload=all as an unconditional refresh. The redownload=yes value fell through to the cached .SRCINFO version check, so it behaved like noredownload.

Fix

  • Force a PKGBUILD refresh when redownload=yes is used for an explicit AUR target.
  • Preserve the existing version check for AUR dependencies.
  • Preserve unconditional refresh behavior for redownload=all.
  • Add regression coverage for all three modes.

Trade-offs

The implementation uses the existing InstallInfo.Reason distinction between explicit targets and dependencies, avoiding changes to workspace preparation APIs or download behavior.

Test Status

  • go test ./pkg/sync/workdir — passed
  • make build — passed
  • git diff --check — passed

No new dependencies were added.

Generated by 🌈 Repo Assist, see workflow run. Learn more.
Comment /repo-assist to run again

Add this agentic workflow to your repo

To install this agentic workflow, run

gh aw add githubnext/agentics/workflows/repo-assist.md@1c6668b751c51af8571f01204ceffb19362e0f66

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

--redownload has no effect

0 participants