-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
[RFC] consensus on $distfiles #27735
Comments
@void-linux/pkg-committers |
+1 for encouraging use of variables whenever possible in distfiles. The primary justification for keeping the homepage and change log free from variables is that these things should be easy to copy and paste (or, in some terminal emulators, directly clickable). No such justification applies to distfiles, which are already encouraged to use When I make changes, I use the shortest possible form for distfiles. However, I tend not to demand a specific style when reviewing others' work. (Although I may suggest such a change when it would be one of many other demands.) EDIT: sorry for the accidental close. |
More places to change if upstream gets a real homepage. IMHO the less variables used in templates the better, it makes things easier to parse and tools like xlint can't deal with variables. |
I'm not a committer but I would agree to always expand URL variables when possible. User scripts (like xtools) will have it a lot easier handling package templates. |
FWIW, I don't like to use |
I like using I would ask that |
I don't like to use Edit: That's in the homepage var itself, not distifles. For distfiles, I typically just replace the version these days. e.g. it IS possible for python packages to have a single URL for all python packages with nothing hardcoded, but this makes it difficult to read. |
ever |
I prefer to avoid variables, for simplicity of processing as text. "Less places to change if upstream moves github" is case only for changed account on same hosting. If hosting is changed, distfiles need to be changed anyway. |
For what it's worth, we also use a bunch of |
Those variables have a well established purpose of making sure we hit the correct centralized distribution server, and are able to change mirrors in a reasonable way. Even if we have not used that capability, I find this valuable. |
I propose to pin this issue to increase visibility |
There is no consensus; pinning the issue and attracting new attention to an unresolved debate that has no functional consequence doesn't offer any benefit. |
Issues become stale 90 days after last activity and are closed 14 days after that. If this issue is still relevant bump it or assign it. |
There are varying opinions among maintainers in regards to how best to structure
$distfiles
.For some time there has been an xlint rule that there must not be any variables in
$homepage
, which is good to me. However, when the distfile is contained underneath the homepage, such as for most github projects, there are two conflicting opinions among Void maintainers, namely whether or not to contract/expand$homepage
in the template. For example,distfiles=https://github.com/emersion/xdg-desktop-portal-wlr/archive/v${version}.tar.gz
v.s.distfiles=${homepage}/archive/v$version.tar.gz
.For a new contributor, this is often very confusing, when one maintainer reviews and asks to shorten/expand and then another maintainer responds with asking not to do this. I have seen this happen many times before, one example being #23296 (comment).
To rectify this issue:
(feel free to edit below)
Pros for contracting (i.e. using
${homepage}
):Pros for expanding (i.e. not using
${homepage}
):@void-linux/pkg-committers (if i can even do that)
The text was updated successfully, but these errors were encountered: