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
Add a source URL type #374
Conversation
|
+1 I agree this is something appstream is missing. Maybe it should be called |
|
We discussed this before, and this should - if it is implemented - not be implemented as an URL tag, as those are for websites for user information and not potentially machine-readable content like version control data. <vcs_browser>https://github.com/ximion/appstream</vcs_browser>
<vcs type="git">https://github.com/ximion/appstream.git</vcs>However, so far there wasn't really a need to add this as software center authors don't want user to click through to developer websites, developers can find the code easily via the homepage, and automatic Git cloning of projects was also not a feature that people wanted yet. |
|
As an anecdote from the elementary AppCenter side: we frequently see developers putting their GitHub repo as their app's homepage URL in their metainfo, but ideally we'd like to encourage them to use an actual consumer/user-facing website instead of a more developer-oriented code repo. If there were an explicit URL type (however implemented) for them to point to their GitHub repo, it would give our request with the developer a bit more weight, ("Use a user-facing website for your I do wonder if we're conflating two different use cases here, though: I know a machine-readable/actionable URL to retrieve the source code has been requested, but I think what's being requested in this issue is a user-facing URL for a specific page/site to encourage contributing. I see both as useful but for different things. For AppCenter, the latter is what's more interesting to me as well, though I see the use of a machine-usable URL for code editors and whatnot. |
This is a link that should be visited by the user and not a machine readable link. It should be shown at the same place as the other links.
With @aleixpol (KDE) and @cassidyjames (elementary OS) we have 2 people who are involved on developing a software center who like this feature. So you can't say that software center authors don't want that. If you open the page of any App with a OpenSource License in Gnome Software, the Software is advertised that the Code is open source and that the Software is developed by a Community. A Link to the source would fit here.
In many cases. But are are also cases where this is not the case. If we follow this logic, there is no need for the other types than homepage, because in most cases you can find Bugtracker, Help, FAQ etc. easily via the homepage.
A Link to the source is shown at the same place as all the other links. This Link can be clicked by people who want to look at the source code (which are very common in the Linux Bubble) of this exact Application.
Contribute is not only working with the source. helping translating (for which we already have a Link) is also contribution. There may also be a few rare cases where people make their code public for a audit but don't want contributions.
To be fair, a reason for that could be, that Flathub requires a Homepage Link. If the developer have no Homepage they simple use their Repo as Homepage Link. |
|
Aleix and Cassidy wanting to use it in Discover and AppCenter is indeed a good argument. |
| <term>source</term> | ||
| <listitem> | ||
| <para> | ||
| Should provide a web link to the source code. |
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.
It would be nice to give an example here at least, as in "link to the source code, for example an online version control system browser."
|
I personally prefer sourcecode. |
|
I just saw that appstream-glib had already implemented the source type. It's been there since 22 Jan 2019 . It might bee already used by Software that uses appstream-glib, so I think it's the best to stick with source as name. |
GNOME Software uses libappstream. And if it's not in the specification it may as well not exist ;-) The "source" thing was implemented for an entirely different, firmware related purpose back then, so no, this will not be named "source" and I have to say after reflecting on it I also really dislike "sourcecode" for a name. From past experience, the more precise a name is, the less issues we will face later with debates of what belongs where and why. The question that has to be answered first and foremost is "What is this link for?".
I think a VCS weblink is what is requested here, or one for development information. From what @cassidyjames said, having a "contribute" option instead might actually turn out to be more useful (and I actually thought that existed already, but I confused it with the "translate" option). |
|
The problem I have with vcs-browser is, that are are may cases where the source code is not managed by a vcs. Mostly older programs which offer a source tarball on their website to download. We could also add a contribute type as well. |
This is explicitly the case I want to avoid for this URL type, because it pushes people into easy-but-wrong patterns where in the end code will be downloaded by scraping the location this URL points to. If someone wants to link a source tarball, using a |
|
+1 to focusing on the vcs and the contribution path. The important part is how to join and contribute rather than the source code itself. |
|
Sorry being away so long.
Maybe we should add the two <url type="vcs-browser">some url</url>
<url type="contribute">some url</url> |
|
I think that's okay for adding |
|
Superseded by #392 |
Most Linux Programs are OpenSource. While smaller Programs use their Repo as Homepage or Link their GitHub issue tracker as Bugtracker, bigger programs does that not. And the Link to the source code is not always prominent on the Homepage, because some Homepages are made for non-programmers. This PR solves this problem. A Link to the source code can be added so users can get there with just one click.