[Feature request] Extend PluginInfo to allow discovery of source code and license
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Idoneità per principianti
- 30/100
Direzione di ricerca
Start by locating PluginInfo and the implementation of sm plugins list in SourceMod; the issue does not name specific files or tests. Review how plugin metadata is declared and displayed, then determine the scope of adding license/source availability information and a connection message. Done means the requested metadata and source-code announcement behavior are defined and implemented consistently.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Help us help you
- [*] I have checked that my issue doesn't exist yet.
Is your feature request related to a problem? Please describe.
I have AGPLv3 plugins (which in the future will have exceptions for the Source engine,) and I'd like players to be informed about that when looking at a server's plugins.
Notwithstanding any other provision of this License, if you modify the Program, your modified version must prominently offer all users interacting with it remotely through a computer network (if your version supports such interaction) an opportunity to receive the Corresponding Source of your version by providing access to the Corresponding Source from a network server at no charge, through some standard or customary means of facilitating copying of software. This Corresponding Source shall include the Corresponding Source for any work covered by version 3 of the GNU General Public License that is incorporated pursuant to the following paragraph.
Players can run sm plugins list to see all the plugins, which includes information like the name and version. However I think this could be adjusted to provide a standardised way for open source plugins to advertise their source code and license.
Describe the solution you'd like
This is in two parts: one is the license/URL information part, and the other is automatic offering of the source code to clients.
License/URL information
PluginInfo would have a new field: license. If unspecified or empty, the license should be considered unknown. Otherwise it can either include an SPDX(-like) string or a link to a license.
public Plugin myinfo = {
name = "Lumberjack",
author = "webb",
description = "Yet another Discord logging plugin.",
version = VERSION,
url = "https://codeberg.org/spiderden/sp",
license = "AGPL-3.0-only-Source-Exception"
}
When players run sm plugins list both the URL and the license will be shown. The existing URL value acts as a way to locate the source code.
sm plugins list
"Lumberjack" (b2d4508) by webb [License: AGPL-3.0-only-Source-Exception, URL: https://codeberg.org/spiderden/sp]
Offering the source code
Offering of the source code could be done through the console, with a short message on connection with something like:
[SM] 12 plugins are loaded with available source code, type "sm plugins list" to view.
There are two ideas I have for determining whether a plugin should be advertised:
-
The license field could be checked with a list of known SPDX licenses for requiring advertisement. If matched this would make it less viable to use niche licenses. This might be desirable as it would encourage people to use more standardised licenses. It would also require maintenance which may not be desirable.
-
An additional field for specifying if the plugin should be advertised as having available source code could be added to PluginInfo.
This is the least invasive form I could think of. Most people might not even notice the line is there.
Describe alternatives you've considered
A third-party plugin could provide this functionality, but it would not be standardised and would be more janky. Being able to simply add a field or two to an existing plugin and have this information displayed would increase adoption and make server compliance for licenses like the AGPL easier. Instead of having to advertise on a site or install yet another plugin, they can just put the unmodified plugin on their server and be compliant.
- Lingua principale
- C++
- Stelle
- 1.2k
- Fork
- 476
- Merge medio
- 2g 9h
- PR unite (30g)
- 13
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di alliedmodders/sourcemod
-
[Bug]: RoundToNearest truncates in plugins compiled with spcomp 1.13Forse già presa @fmu1337 l’ha presa oggi. ApertaBug
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
alliedmodders/sourcemod#2627 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
alliedmodders/sourcemod#2615 ·
I maintainer di solito rispondono entro 1 giorno
-
Bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
alliedmodders/sourcemod#2613 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
alliedmodders/sourcemod#2571 · 4 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
Disable Nextmap for CSGO?ApertaFeature Request
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 64/100
alliedmodders/sourcemod#2555 · 3 reazioni ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di alliedmodders/sourcemod
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 64/100
-
triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
I maintainer di solito rispondono entro 3 giorni
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
patrick-hudson/put.gd-desktop#2044 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
uxlfoundation/oneDNN#6604 · 1 commento ·
I maintainer di solito rispondono entro 2 giorni