Skip to content

1.17.0

Latest

Choose a tag to compare

@github-actions github-actions released this 23 Nov 08:28
· 7 commits to master since this release
4b7f7c3

sampctl 1.17.0

This release introduces project-level dependency overrides, allowing projects to control dependency versions directly from their package manifests. It also improves dependency resolution, fixes runtime configuration behaviour, and significantly expands documentation and regression test coverage.

Highlights

  • Project-level dependency overrides: Define dependency replacements in pawn.json or pawn.yaml, keeping version decisions alongside your project's source code.
  • More reliable dependency management: Improved handling of overridden dependencies during installation, updates, removal, and lockfile resolution.
  • Runtime configuration fix: Explicitly configured gamemodes are now respected when starting servers.
  • Improved documentation: Expanded guides, more YAML examples, and clearer explanations of dependencies, runtimes, caching, CI, and releases.
  • Better test coverage: Refactored tests for readability and added regression coverage for dependency overrides and recovery scenarios.

Added

Project-level dependency overrides

Projects can now declare dependency overrides directly in their package manifests.

This allows developers to replace specific dependency versions without relying on global configuration or requiring changes to upstream libraries.

For example, a project using PawnPlus can redirect older dependency requests to a newer version:

pawn.yaml

dependencies:
  - "github.com/IllidanS4/PawnPlus:v1.5.2"

overrides:
  "github.com/IllidanS4/PawnPlus:v1.0.0-pre4": "github.com/IllidanS4/PawnPlus:v1.5.2"
  "github.com/IllidanS4/PawnPlus:v1.4.0.1": "github.com/IllidanS4/PawnPlus:v1.5.2"

Equivalent configuration is supported in pawn.json.

Override behaviour:

  • Exact matching: Rules match the original dependency declaration, including version, case, and any host or protocol prefix.
  • Root-project scope: Overrides in the root manifest apply to direct, development, and transitive dependencies. Overrides declared by dependencies do not affect consuming projects.
  • Precedence: Project overrides take priority over user, remote, and built-in overrides.
  • Single substitution: Replacements are applied once rather than recursively following override chains.
  • Version control: Override rules can be committed with the project so collaborators and CI use the same dependency configuration.

Fixed-version replacements remain pinned during forced updates. To change the replacement version, edit the override in the manifest.

See [Package documentation](https://github.com/Southclaws/sampctl/blob/master/docs/packages.md) for additional examples and usage details.

Fixed

Dependency management

  • Fixed dependency selectors to correctly recognize project-level overrides during targeted updates.
  • Fixed installation and removal behaviour when dependency declarations resolve to replacement packages.
  • Preserved original dependency declarations when installing overridden dependencies.
  • Improved handling of overridden dependencies when resolving existing lockfile entries.
  • Fixed scenarios where an existing lockfile could retain outdated dependency resolution after applying project overrides.
  • Improved handling of forced updates and pinned replacement versions.
  • Added regression coverage for dependency identity, version conflicts, invalid overrides, and failure recovery.

Runtime configuration

  • Fixed server startup ignoring explicitly configured gamemodes in certain runtime configurations.

Changed

Documentation

The documentation has been revised to make common workflows easier to understand and maintain.

Improvements include:

  • Added YAML equivalents for JSON configuration examples.
  • Improved the quickstart guide and package configuration explanations.
  • Clarified dependency resolution, lockfile behaviour, and dependency overrides.
  • Expanded documentation for caching, templates, and releases.
  • Clarified server runtime selection and configuration.
  • Documented pinned installation workflows for CI environments.
  • Improved consistency across command examples and reference documentation.

Tests and maintainability

  • Refactored larger integration tests into smaller, behaviour-focused tests.
  • Improved fixture setup, test isolation, and assertion readability.
  • Expanded regression coverage for dependency installation, removal, updates, and lockfile handling.
  • Improved runtime test fixtures to avoid unnecessary busy-waiting.
  • Strengthened coverage of dependency recovery and rollback behaviour.

These changes are primarily internal and are intended to make future maintenance and regression detection easier.

Maintenance and security

  • Updated Go toolchain versions to include release security patches.
  • Updated the Docker Go build image to 1.27.3-bookworm.
  • Updated docker/login-action from 4.6.0 to 4.7.0.
  • Updated Homebrew Cask and Scoop packaging definitions for the previous release.

Compatibility

Project-level overrides are optional. Existing projects without an overrides field can continue using their existing package manifests.

Existing user, remote, and built-in dependency overrides remain supported, with project-level rules taking precedence when an exact match exists.

Projects adopting this feature should commit their updated manifest and pawn.lock together to preserve reproducible dependency resolution.

When overriding dependencies, verify compatibility with the replacement version, particularly when an upstream library depends on behaviour specific to an older release.

Contributors

Thanks to everyone who contributed to this release, including [@vawylon](https://github.com/vawylon) for the explicitly configured gamemodes fix, and the contributors who helped improve dependency management, documentation, testing, and release automation.


Full changelog: [1.16.0...1.17.0](1.16.0...1.17.0)