crazywhalecc / static-php-cli

Build standalone PHP binary on Linux, macOS, FreeBSD, Windows, with PHP project together, with popular extensions included.
https://static-php.dev
MIT License
1.17k stars 184 forks source link

Unable to download xz #497

Closed nicholasdille closed 1 day ago

nicholasdille commented 5 days ago

With the latest version 2.2.4, spc is unable to download xz version 5.4.6 from fossies.org.

This was fixed in crazywhalecc/static-php-cli#495 by upgrading to xz 5.4.7 but spc remains broken.

Any advice how to solve this with spc version 2.2.4 while waiting for a release?

crazywhalecc commented 5 days ago

When downloading, you can override download url using -U {source_name}:{url} option. For example: bin/spc download --for-extensions=XXX,YYY -U "xz:https://github.com/tukaani-project/xz/releases/download/v5.6.2/xz-5.6.2.tar.gz".

And btw, the current spc version is not very meaningful. Generally, the patch version number is updated once a week, or the minor version num add with a big feature added. And if you do not need to use the SPC injection and API and only use the command line, the main branch is more usable.

The version number may be useful in the future when the setup-static-php GHA workflow is released, but for now SPC built from the main branch is more usable.

nicholasdille commented 1 day ago

Thanks!