static-php-cli icon indicating copy to clipboard operation
static-php-cli copied to clipboard

Automatically get latest gRPC source

Open henderkes opened this issue 4 months ago • 4 comments

We need to use type 'git' because we need to clone submodules. But we only have 'rev' for that, which does not accept version constraints like 1.\d+.\d+.

We should look to find a way to update grpc source without always updating the '1.75.x' rev.

henderkes avatar Sep 21 '25 18:09 henderkes

It sounds like a necessary operation, but the only reasonable way I can think of is to write a built-in source update command and then let actions automatically refresh source.json.

In this case, we may need to implement a metadata interface for source. I'm not sure how to implement it for now, but I've recently drafted a change list for 3.0, I can add to it.

And if we use Git commands to query, AFAIK it can only pull a main branch first and then query the branch list and switch, and we can't do this with GitHub's API because there is not only GitHub's Git repository.

crazywhalecc avatar Oct 11 '25 05:10 crazywhalecc

I think using git commands to query branches, match against a regex and then checkout is a viable strategy.

henderkes avatar Oct 11 '25 07:10 henderkes

Fixed in https://github.com/crazywhalecc/static-php-cli/commit/fefcbf4029d89c5628c190565ed155894565c024 (for v3 only)

crazywhalecc avatar Dec 11 '25 07:12 crazywhalecc

@crazywhalecc thank you very much :)

JoshuaBehrens avatar Dec 11 '25 12:12 JoshuaBehrens