Cog license indication in info.json #5010
Labels
No labels
Automated PR
Blocked
Blocked By: Damage Control
Blocked By: Dependency
Blocked By: Other PR
Breaking Change
Category: CI
Category: Cogs - Admin
Category: Cogs - Alias
Category: Cogs - Audio
Category: Cogs - Bank
Category: Cogs - Cleanup
Category: Cogs - CustomCommands
Category: Cogs - Dev
Category: Cogs - Downloader
Category: Cogs - Economy
Category: Cogs - Filter
Category: Cogs - General
Category: Cogs - Image
Category: Cogs - Mod
Category: Cogs - Modlog
Category: Cogs - Mutes
Category: Cogs - Permissions
Category: Cogs - Reports
Category: Cogs - Streams
Category: Cogs - Trivia
Category: Cogs - Trivia - Lists
Category: Cogs - Warnings
Category: Core - API - App Commands Package
Category: Core - API - Audio
Category: Core - API - Bank
Category: Core - API - Commands Package
Category: Core - API - Config
Category: Core - API - Other
Category: Core - API - Utils Package
Category: Core - Bot Class
Category: Core - Bot Commands
Category: Core - Command-line Interfaces
Category: Core - Downloader
Category: Core - Help
Category: Core - i18n
Category: Core - Modlog
Category: Core - Other Internals
Category: Core - RPC/ZMQ
Category: Docker
Category: Docs - Changelogs
Category: Docs - For Developers
Category: Docs - Install Guides
Category: Docs - Other
Category: Docs - User Guides
Category: Meta
Category: RPC/ZMQ methods
Category: Vendored Packages
Changelog Entry: Added
Changelog Entry: Pending
Changelog Entry: Skipped
Closed: Duplicate
Closed: External
Closed: Invalid
Closed: User Error
Closed: Won't Fix
Complex Issue
Docs-only
Feature Branch
Good First Issue
Help Wanted
High Priority
Needs Backport To stable-docs
No Activity
No Repro
QA: Bypassed
QA: Changes Requested
QA: Passed
Release Blocker
Status: Accepted
Status: Frozen
Status: In Progress
Status: Needs Discussion
Status: Needs Info
Status: Needs Triage
Status: PRs Welcome
Type: Bug
Type: Dependency Update
Type: Deprecation
Type: Enhancement
Type: Feature
Type: Informational
Type: Merge
Type: Optimisation
Type: Question
Type: Removal
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
Mrcoolgamer11/Red-DiscordBot#5010
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Type of feature request
API functionality, Command
Description of the feature you're suggesting
As it stands, neither the
[p]cog infocommand nor theinfo.jsonformat give information about the cog's license, which would be nice to be able to inspect at a glance. The ability for end users to know what rights they have to use the cog are important. For example, some cogs might be licensed under the AGPL, and thus anyone running a bot would be obligated to provide the source code of that cog.My first thought, because it's easy for developers and used in many other package managers, would be to include a
licensefield withininfo.jsonthat contains an SPDX license expression. The cog manager would either point to https://spdx.org/licenses/ and let the user figure it out (it's not too hard) or parse the expression into hyperlinks. (e.g.,AGPL-3.0-or-later-> https://spdx.org/licenses/AGPL-3.0-or-later.html). The main issue with this approach is proprietary licenses (excluding the Creative Commons suite), but I feel like this is enough of an edge case that proprietary cogs could just not include it ininfo.json.A major benefit of SPDX license expressions is that, at least in the future, we could provide a summary of licenses used for the entire bot installation. I was imagining some sort of
[p]licensecommand for summing everything up, if the[p]cogcommand isn't best-suited for that purpose.Additionally, even if it's not within the bot itself, the cog index would greatly benefit from this as well, since people could filter by licenses if some are impractical for their setup.
Anything else?
No response
I am not a lawyer, but the github repo for all cogs can be found via
[p]findcog(assuming downloader is loaded), and assuming the bot owner is not editing cogs (which is not supported), that should be sufficient.This isn't to say I'm against the idea, just that the specific point is not necessarily an issue bot owners should be super worried about.
@Flame442 true. Bot owners shouldn't be too worried, since the freedom to run the program for any purpose is guaranteed by all free software licenses. I wasn't trying to claim there was any copyright infringement going on, but any licensing clarity is a good thing in my book.
Offene Diskussion bzw. Feature-Wunsch mit geringem Nutzen im Verhältnis zum Aufwand (oder Nischenfall), der seit Langem ohne Ergebnis offen ist. Ich schließe das Issue; bei konkretem Bedarf kann es gern wieder geöffnet werden.
Generated by Claude Code