Github messages for voidlinux
 help / color / mirror / Atom feed
* [ISSUE] [RFC] Consencus on $distfiles
@ 2021-01-07  9:49 fosslinux
  2021-01-07  9:52 ` Piraty
                   ` (21 more replies)
  0 siblings, 22 replies; 23+ messages in thread
From: fosslinux @ 2021-01-07  9:49 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1513 bytes --]

New issue by fosslinux on void-packages repository

https://github.com/void-linux/void-packages/issues/27735

Description:
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 https://github.com/void-linux/void-packages/pull/23296#discussion_r517525903.

To rectify this issue:

1. Add a note to Manual.md on a consensus on what should be done.
2. Create an xlint rule.

(feel free to edit below)

#### Pros for contracting (i.e. using `${homepage}`):

1. Shorter variable declarations
2. Less places to change if upstream moves github, for example.

#### Pros for expanding (i.e. not using `${homepage}`):

1. Easier to copy-paste urls
2. "obfuscates" url

@void-linux/pkg-committers (if i can even do that)

^ permalink raw reply	[flat|nested] 23+ messages in thread

end of thread, other threads:[~2022-07-10  2:14 UTC | newest]

Thread overview: 23+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-07  9:49 [ISSUE] [RFC] Consencus on $distfiles fosslinux
2021-01-07  9:52 ` Piraty
2021-01-07 12:08 ` [RFC] consensus " ahesford
2021-01-07 12:08 ` [ISSUE] [CLOSED] " ahesford
2021-01-07 12:10 ` ahesford
2021-01-07 12:25 ` Duncaen
2021-01-07 12:26 ` Duncaen
2021-01-07 13:13 ` Anachron
2021-01-07 13:38 ` sgn
2021-01-07 13:46 ` Duncaen
2021-01-07 13:58 ` ericonr
2021-01-07 15:19 ` Vaelatern
2021-01-07 15:22 ` Vaelatern
2021-01-07 19:57 ` Piraty
2021-01-07 21:54 ` Chocimier
2021-01-08  5:06 ` ericonr
2021-01-08  5:06 ` ericonr
2021-01-08  5:23 ` Vaelatern
2021-01-08  5:30 ` ericonr
2022-03-26 18:26 ` subnut
2022-03-26 21:34 ` ahesford
2022-06-25  2:15 ` github-actions
2022-07-10  2:14 ` [ISSUE] [CLOSED] " github-actions

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).