msys2 / msys2/msys2-devtools

srcinfo-cache: detect changes in sourced scripts

Open
#4 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
9
Forks
6
PR merge metrics
No merged PRs in 30d

Description

We have some PKGBUILD files which source some shared scripts like https://github.com/msys2/MINGW-packages/tree/master/mingw-w64-PKGBUILD-common

We currently don't detect changes to those scripts.

Something like this should work:

$ bash -cx "source PKGBUILD" 2>&1 | sed -n 's/^+* \(source\|\.\) //p'
PKGBUILD
./../mingw-w64-PKGBUILD-common/kde-frameworks5

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing the srcinfo-cache entry point and reproduce the shown bash command to see how sourced paths are reported. Follow how PKGBUILD changes are currently detected, then make changes to sourced shared scripts trigger the same cache update behavior; done means the example shared script is detected as an input.

Written by the indexing model from the issue text.

Assessment

Tech stack
bash
Domain
tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.