Skip to content
Edit this page

002: License Selection

  • Type: Strategy
  • Status: Accepted
  • Date: 2026-12-02
  • Author(s) / Deciders: João V. Farias
  • Question: Under what license terms are the source code, documentation, and build outputs governed?

Context

Software published without a license defaults to all rights reserved, which stops third parties from modifying or redistributing it lawfully. Because winesmith orchestrates compilers, writes temporary .cmd wrappers, generates winesmith.lock, and emits Nushell completion scripts, users need assurance that compiling commercial or permissively licensed projects with winesmith does not place their build outputs under copyleft.

Requirements and restrictions

Three licensing constraints govern source code, third-party crates, and generated outputs:

  • Modifications to winesmith itself, including modified copies operated over a network build service, MUST remain available under strong copyleft terms.
  • Compiling, testing, or packaging software with winesmith MUST NOT apply AGPL-3.0 obligations to user source repositories, compiled Windows binaries, installers, lockfiles, .cmd wrappers, or generated shell completions.
  • All Rust crate dependencies MUST use licenses compatible with AGPL-3.0-or-later, such as MIT, Apache-2.0, BSD, ISC, or MPL-2.0.

Alternatives

Three licensing models were compared before selecting the repository license:

  • Permissive licenses (MIT or Apache-2.0) keep adoption simple while letting third parties embed modified versions in closed-source commercial platforms without sharing fixes upstream.
  • Plain GPL-3.0-or-later enforces source disclosure for distributed binaries, though modified builds running solely behind hosted CI APIs do not trigger distribution clauses.
  • Plain AGPL-3.0-or-later without an additional permission closes the hosted-service gap, yet leaves users uncertain whether generated .cmd wrappers, lockfiles, or compiled outputs might fall under Section 5.

Decision

Distribute winesmith under AGPL-3.0-or-later in LICENSE, paired with an explicit Compilation Output Exception in COPYING.EXCEPTION granted under Section 7 of GNU AGPLv3 and modeled after the GCC Runtime Library Exception and GNU Bison Exception.

That combination establishes three legal rules:

  1. Running winesmith to compile, test, or package any project imposes no AGPL-3.0 terms on that project's source files, binaries, libraries, or installers.
  2. Artifacts emitted by winesmith during normal operation (temporary .cmd scripts, winesmith.lock, winesmith-state.json, and output from winesmith completions nu) MAY be used, edited, and distributed under any license.
  3. Changes to winesmith source code, recipes, or hosted wrappers around modified builds remain governed by AGPL-3.0-or-later.

Documentation under documentation/ carries the same license unless a file states otherwise.

Consequences

Positives

Developers building either open-source or proprietary Windows software can adopt winesmith without copyleft spillover onto compiled artifacts. Upstream fixes made to winesmith and hosted modifications remain open to the community.

Negatives

Contributors must accept AGPL-3.0-or-later with the Section 7 output exception, so any future re-licensing would require agreement from all copyright holders. Corporate legal reviewers unfamiliar with GCC-style Section 7 exceptions may spend extra time reviewing COPYING.EXCEPTION compared to an MIT codebase.