-
-
Notifications
You must be signed in to change notification settings - Fork 14.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
php: Use fetchFromGitHub
instead of fetchurl
.
#155012
Conversation
@ofborg build php74 |
@ofborg build php80 |
@ofborg build php81 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- Could you explain what is the purpose of this change. (And also in the commit message.)
- The commit message should be prefixed by
maintainers/team-list:
andphp:
tags, respectively. - I believe we already discussed switching from published tarballs to
fetchFromGitHub
in the past but I cannot find any other reference than php74: init at 7.4.0 #73151 (comment). - This will also break users of
generic.nix
like nix-phps but we probably should not consider this a public API.
I though it would be cleaner to use Also, I would like to provide
I guess I was not using Nixos at that time, I don't remember such discussion.
Yep, we can update it accordingly on our own quite easily. |
I don't see such a necessity. Second, Third, and related with second, the Github sources are not necessarily exactly the same as the tarballed ones. Sometimes the upstream project runs a prepare-for-release script before generating the release tarball (something like run autoconf and automake to generate the configure script). Fourth, and expanding the third, if the upstream project provides their own links instead of relying on Github automated facilities, I think we should follow them in that regard. Until proven otherwise, we should trust them.
What about an overlay outside Nixpkgs? |
P.S.: this commit title message is the most misleading I have seen. |
Thanks for all your comments, it's clearer. Sorry for the PR title, next time I'll prefix it correctly. I will close this PR now. |
Sorry to dig up an already closed topics, but wouldn't it be a good idea to switch to Github so @r-ryantm can create automatic pull-requests as soon as a new tag is pushed? |
How is this related to GitHub? r-ryantm IIRC uses repology for versioning information and can also update packages that don't do fetchFromGitHub. |
I don't think it's possible to do since we are using a specific URL for downloading the PHP tarball. |
r-ryantm uses various sources of new versions including GitHub releases (for derivations using fetchFromGitHub) and repology. |
@ryantm PHP release tarballs are fetched here: https://github.com/drupol/nixpkgs/blob/master/pkgs/development/interpreters/php/generic.nix#L300 I doubt that it can be automatized by @r-ryantm. |
The bots should conform to Nixpkgs "api", not the reverse. It looks easier to update ryantm bot instead of butchering Nixpkgs. Also, the bots are our helpers. They should make our lives easier, not us making their lives easier. After all, without Nixpkgs none of those bots has a reason to exist. |
I definitely in favor of using bots, I found this idea amazing ! What I just suggesting here is to use AFAIK, |
Then you should do more than merely change the fetcher, because surprise, different sources do not necessarily correspond to the same output.
Then you at least should investigate if the source can be replaced instead of supposing it. Further, remember that r-ryantm is just a dumb builder. If github sources need some preparation, it is your job to provide them (and provide that they will not break in future releases). |
Just to be not misinterpreted here: changes are welcome and I encourage them, however remember to trim the edges and ensure that the new configuration does not destroy an otherwise working release. |
Hi @AndersonTorres , Thanks for taking the time to explain! I'm glad to have some challenges, and my motivation is not gone! :) |
fetchFromGitHub
instead of fetchurl
.fetchFromGitHub
instead of fetchurl
.
Motivation for this change
Things done
sandbox = true
set innix.conf
? (See Nix manual)nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)nixos/doc/manual/md-to-db.sh
to update generated release notes