1.17.02026-11-23
sampctl 1.17.0 上线了项目级依赖覆盖功能,让版本决策跟着项目走。你可以在 pawn.json 或 pawn.yaml 里直接声明覆盖规则,把旧版本的依赖请求重定向到新版本,不必依赖全局配置,也不用改动上游库。比如把 PawnPlus 的 v1.0.0-pre4 和 v1.4.0.1 都指向 v1.5.2:
pawn.yaml
``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"
``
覆盖规则按原始声明精确匹配(含版本、大小写、主机与协议前缀),只在根项目生效,优先级高于用户、远程和内置覆盖,且只做一次替换、不递归追链。规则随项目提交后,协作者和 CI 会用同一套依赖配置;强制更新时替换版本保持锁定,想换版本就改清单里的覆盖项。
这版还修了一批依赖管理问题:定向更新时能正确识别项目级覆盖,安装、移除、锁文件解析在依赖被替换后的行为都更可靠,旧锁文件不再残留过时的解析结果。运行时方面,显式配置的 gamemode 在启动服务器时会被正确采纳,此前某些配置下会被忽略。文档补了 YAML 示例、快速上手和依赖/运行时/缓存/CI 说明,测试也重构并补上了依赖覆盖与故障恢复的回归用例。
1.16.02026-10-14
本次更新以稳定性修复和内部重构为主。修复方面:依赖解析现在会先应用 lockfile 锁定版本再构建依赖图,克隆时正确响应认证取消与指定版本,依赖标识在遍历中不再丢失;构建计数器拒绝负值,模板渲染错误会在初始化阶段直接抛出,编译器诊断不再混入模板命令输出;POSIX 运行时修复了进程退出后 PTY 输出排空无上限、文件输入未停止转发的问题,运行中断也不再抛出冗长错误链。发布流程上,容器镜像补齐 amd64 支持,构建产物会记录来源与哈希,OpenMP 配置在发布失败时得以保留,发布前强制通过质量检查。另升级 ssh 依赖并要求 Go 1.26.9。重构部分拆分了依赖恢复、插件安装、编译器准备、包构建等模块的职责,为后续维护铺路。
1.15.02026-10-13
本次更新集中打磨依赖管理与运行时的可靠性。依赖操作现在具备中断恢复能力,能诊断并修复被中断的安装与更新,项目元数据写入也改为原子操作,避免中途失败留下损坏状态;依赖冲突与失败信息会给出可操作的诊断,不再重复刷屏。运行时与编译器方面,安装过程会先暂存再校验,中断的更新可自动续传,并记录文件归属,防止误删用户已有内容。另外修复了旧版 stdlib 仓库别名解析、vendored 文件校验、下载限流提示等问题,刷新缓存时会遵循声明的 remote,共享依赖解析尊重直接 pin。依赖下载增加了瞬时失败重试,插件定义改用缓存以加速发布包下载。内部依赖也做了清理,迁移到受支持的 Docker SDK 与 yaml v3。
1.14.12026-07-30
What's Changed
* Scoop update for sampctl version 1.14.0 by @github-actions[bot] in https://github.com/Southclaws/sampctl/pull/646
* Brew cask update for sampctl version 1.14.0 by @github-actions[bot] in https://github.com/Southclaws/sampctl/pull/645
* fix: force samp-stdlib/omp-stdlib to use @master branch rather then f… by @ADRFranklin in https://github.com/Southclaws/sampctl/pull/647
* chore(deps): bump golang.org/x/text from 0.38.0 to 0.39.0 by @dependabot[bot] in https://github.com/Southclaws/sampctl/pull/648
* chore(deps): bump golang.org/x/text from 0.39.0 to 0.40.0 by @dependabot[bot] in https://github.com/Southclaws/sampctl/pull/649
* bump actions/setup-go from 6 to 7 by @dependabot[bot] in https://github.com/Southclaws/sampctl/pull/651
* chore(deps): bump github.com/jedib0t/go-pretty/v6 from 6.8.2 to 6.8.3 by @dependabot[bot] in https://github.com/Southclaws/sampctl/pull/652
* chore(deps): bump golang.org/x/sys from 0.46.0 to 0.47.0 by @dependabot[bot] in https://github.com/Southclaws/sampctl/pull/650
* fix: resolve metadata from pinned revisions by @ADRFranklin in https://github.com/Southclaws/sampctl/pull/656
New Contributors
* @github-actions[bot] made their first contribution in https://github.com/Southclaws/sampctl/pull/646
Full Changelog: https://github.com/Southclaws/sampctl/compare/1.14.0...1.14.1
1.14.02026-07-02
1.14.0 - 2026-07-02
Compared to 1.13.0: 79 commits and 225 changed files.
Highlights
* Improved ensure so specific packages can be updated directly, with support for force-updating pinned packages.
* Fixed several dependency version-selection regressions, including incorrect ref selection, missed latest lookups, branch resolution being ignored when tags were present, and lockfile state being discarded too early.
* Continued the internal Go refactor work, splitting large files, reducing duplicated folder structure, improving command state management, and making the codebase more idiomatic and testable.
* Improved runtime handling, especially around platform-specific runtimes, runtime context reuse, cancellation, and copied runtime data.
* Added clearer handling for systems without git, including better install guidance for Git via common package managers.
* Fixed download retry behaviour so context cancellation is respected during backoff waits.
* Updated CI/release automation, including release workflow fixes, GoReleaser cask/scoop PR support, and newer GitHub Actions versions.
* Bumped several dependencies, including go-git, fsnotify, go-pretty, golang.org/x/sys, and golang.org/x/text.
Added
* ensure can now target and update specific packages.
* ensure can force updates for pinned packages where requested.
* Better user-facing warning/help output when git is not installed.
* Shared Git install instruction generation for reuse across command flows.
Changed
* Refactored command/app setup to use clearer command state and more idiomatic Go structure.
* Split larger files and package areas into smaller, easier-to-test units.
* Decoupled more of the lockfile, ensure, runtime, git, and remote-fetch logic.
* Treated the lockfile more like an actual constraint source rather than only a guide.
* Improved context/container wiring and runtime environment testability.
* Reduced noisy output by moving some messages to verbose logging.
* Improved linting, formatting, vet coverage, and general code quality rules.
Fixed
* Fixed init regression when running in an empty folder.
* Fixed version selectors incorrectly resolving refs.
* Fixed latest tag lookup regressions.
* Fixed lockfile state handling for packages using latest/alias tags.
* Fixed branch resolution being ignored when a release tag was present.
* Fixed a regression caused by checking only tags for versioning.
* Fixed platform-specific runtime handling where context was reused incorrectly.
* Fixed runtime object data being lost/emptied after package updates.
* Fixed runtime context cancellation regressions.
* Fixed a possible data-loss issue when copying runtimes.
* Fixed GitHub client fallback behaviour when a token is missing or invalid.
* Fixed a PTY race where it could close too early and cause flaky tests.
* Fixed a download asset error-message issue.
* Fixed download retry backoff so cancellation is respected through context.
* Fixed multiple flaky tests and test fixture state issues.
CI / Release
* Fixed release workflow issues after 1.13.0.
* Updated GoReleaser configuration so cask/scoop changes can be raised as PRs.
* Updated release workflow permissions to allow release PR creation.
* Updated actions/checkout from 6 to 7.
Dependency Updates
* Bumped github.com/go-git/go-git/v5 from 5.17.0 to 5.19.1.
* Bumped github.com/fsnotify/fsnotify from 1.9.0 to 1.10.1.
* Bumped github.com/jedib0t/go-pretty/v6 from 6.7.8 to 6.8.2.
* Bumped golang.org/x/sys through 0.46.0.
* Bumped golang.org/x/text through 0.38.0.
* Updated related transitive Go dependencies through the above bumps.
* Updated GitHub Actions dependencies.
Contributors
Thanks to everyone who contributed changes in this release range, including ADRFranklin, themxp, ricardoofnl, and dependabot.
1.13.02026-03-24
1.13.0 - 2026-03-10
Compared to 1.12.1: 136 commits across 37 merged pull requests.
Compare: <https://github.com/Southclaws/sampctl/compare/1.12.1...1.13.0>
Highlights
- Added lockfile support with pawn.lock, lockfile integrity tracking, runtime/build resolution recording, and init/install integration.
- Added package-level presets so packages can declare a default runtime/compiler target such as openmp directly in the package definition.
- Added the component:// dependency schema to better model component-style dependencies separately from plugins.
- Added tag generation and improved handling for previously tagless dependencies.
- Added an experimental build include file feature for build-time constants and metadata.
- Reworked build, package, runtime, git, and remote-fetch flows to use clearer abstractions and improved testability.
- Consolidated filesystem and cache handling through the newer fs, cache, resource, and download helpers.
- Improved private repository support and auth handling across GitHub release downloads, git, and ensure flows.
- Hardened watch/build/run behavior with debounce logic, child-process cancellation fixes, and fewer flaky tests.
- Expanded the documentation set significantly, including package, runtime, CI, container, dependency, quickstart, and migration guides.
Added
- pawn.lock generation and lockfile-aware dependency resolution.
- component:// dependency support.
- Root-level package preset support.
- Automatic tag assignment for tagless dependencies.
- Experimental build file generation for compile-time constants.
- A large new offline fixture and regression test suite across package, runtime, resource, and download flows.
- Dedicated documentation for migrating from SA-MP to open.mp.
Changed
- Init/ensure flows were aligned so init prepares dependencies more like ensure.
- Runtime paths are normalized more consistently.
- local no longer needs to be explicitly set in the root package definition in common cases.
- Bash completion and several command helpers were consolidated.
- Release interactions were abstracted behind an interface for easier testing.
- Remote resource fetching, cache layout, and filesystem helpers were consolidated and cleaned up.
- The project documentation moved away from a README-heavy layout into a fuller docs set.
Fixed
- Private repo release downloads now use authenticated GitHub client flows where needed.
- Git auth is now applied more consistently across HTTPS and SSH operations.
- Compiler path resolution now uses the correct repository/user-aware base path.
- Compiler source path handling for issue #587 was corrected.
- Build watchers now debounce file changes and avoid re-extract collisions.
- Child-process cancellation no longer leaks into subsequent watcher runs.
- Plugin/component install-location regressions were corrected.
- Include-path regressions introduced by newer schema work were addressed.
- Scoop install docs and manifest handling were corrected after naming changes.
- Retry logic now avoids retrying non-5xx failures and handles GitHub backoff more safely.
- Config-file permissions were tightened.
- Several flaky and fixture-dependent tests were stabilized.
Compatibility Notes
- Legacy samp.json-related code was removed.
- Legacy sampctl-runtime-manifest.json handling was removed.
- Packages adopting presets, lockfiles, or component dependencies may want to refresh their docs and CI to match the newer workflow.
Documentation
- Reworked and expanded docs across install, quickstart, package definitions, runtime configuration, dependencies, plugin resources, testing, CI, caching, troubleshooting, and global config.
- Added a library creator guide.
- Added a migration guide for moving packages from SA-MP to open.mp.
- Improved runtime field documentation, especially for open.mp.
Dependency And Tooling Updates
- Bumped github.com/go-git/go-git/v5 from 5.16.4 to 5.17.0 over two updates.
- Bumped golang.org/x/sys from 0.38.0 to 0.41.0 over two updates.
- Bumped golang.org/x/text from 0.31.0 to 0.34.0 over two updates.
- Bumped golang.org/x/oauth2 from 0.33.0 to 0.35.0 over two updates.
- Bumped github.com/jedib0t/go-pretty/v6 from 6.7.5 to 6.7.8 over two updates.
- Bumped actions/upload-artifact from 5 to 7 over two updates.
- Bumped docker/login-action from 3 to 4.
- Bumped goreleaser/goreleaser-action from 6 to 7.
Merged Pull Requests In This Release
- #565 More refactoring
- #566 feat: added component schema for dependencies (fixes #563)
- #555 chore(deps): bump golang.org/x/sys from 0.38.0 to 0.39.0
- #561 chore(deps): bump actions/upload-artifact from 5 to 6
- #556 chore(deps): bump golang.org/x/oauth2 from 0.33.0 to 0.34.0
- #557 chore(deps): bump golang.org/x/text from 0.31.0 to 0.32.0
- #558 chore(deps): bump github.com/jedib0t/go-pretty/v6 from 6.7.5 to 6.7.7
- #567 Just a tweak in comments
- #568 Add package preset
- #569 fix: forgot to update init command usage to reflect preset runtime to preset replacement
- #570 Refactor documentation
- #571 feat: add tags to tagless dependencies (fixes #185)
- #572 chore(deps): bump github.com/jedib0t/go-pretty/v6 from 6.7.7 to 6.7.8
- #573 chore: add scoop install instructions to documentation
- #574 Fix Scoop installation instructions to support automatic updates
- #575 Additional docs
- #576 fix: structuring openmp fields and documenting all runtime fields
- #577 Refactor tweaks
- #579 fix: scoop manifest was broken due to goreleaser naming convention changes
- #580 fix: plugins being treated as components due to the legacy changes
- #582 fix: attempt to fix the include path regression caused by new schema additions
- #585 doc: added documentation for migrating from sa-mp to openmp
- #586 Update command for initializing open.mp runtime
- #553 add lockfile support
- #592 fix: forced compiler to use base path as the source (fixes #587)
- #588 chore(deps): bump golang.org/x/sys from 0.39.0 to 0.41.0
- #589 chore(deps): bump github.com/go-git/go-git/v5 from 5.16.4 to 5.16.5
- #591 chore(deps): bump golang.org/x/oauth2 from 0.34.0 to 0.35.0
- #590 chore(deps): bump golang.org/x/text from 0.32.0 to 0.34.0
- #594 fix: private repos were using FromNet which does not pass auth headers
- #596 feat: added new build file under experimental feature flags
- #599 chore(deps): bump goreleaser/goreleaser-action from 6 to 7
- #600 chore(deps): bump github.com/go-git/go-git/v5 from 5.16.5 to 5.17.0
- #602 chore(deps): bump docker/login-action from 3 to 4
- #601 chore(deps): bump actions/upload-artifact from 6 to 7
- #603 fix: git auth for HTTPS/SSH was not used for all git operations where it made sense
- #604 fix: added watcher debounce and checks to prevent re-extracting compiler which can cause access collisions
- #609 Refactor app workflow
Contributors In This Range
- ADRFranklin
- themxp
- mxp96
- timel0st
- Nexius
- dependabot[bot]
- copilot-swe-agent[bot]
1.12.02025-12-02
[1.12.0] - 2025-12-02
Compared to 1.11.3
Highlights
- Major internal refactor of the project structure for easier future maintenance and refactoring. (#526)
- Improved open.mp support and added robust dependency overrides for moved/deleted/broken repos (e.g. Zeex repos). (#526)
- Release and packaging pipeline updated for GoReleaser v2 and modern GitHub Actions. (#528)
- macOS (darwin) builds removed (no longer supported). (#532)
---
Added
- RootLink config option to allow creating a symlink for a “dangerous” custom server root, giving more flexibility in how runtimes are laid out. (#526)
- Support for URL-based dependency strings, allowing dependencies to be referenced directly via URLs. (#526)
- A dependency overrides mechanism (including sampctl/plugins/dependency_overrides.json) to transparently fix or remap broken/moved repositories. (#526)
- Improved open.mp integration to better handle open.mp-specific packages and layouts. (#526)
- Added a devcontainer configuration and associated tooling to simplify local development. (#526)
- Added Dependabot configuration for automated dependency updates. (#526)
- GoReleaser v2 configuration now includes ARM build settings (goarm, platform-specific ignore rules). (#530)
---
Changed
- Project structure refactor:
- Core code reorganised under a new layout (including main package under ./src). (#526)
- Deprecated Go functions removed and replaced with their modern equivalents. (#526)
- Release & packaging:
- Scoop and Homebrew manifests updated and maintained manually. (#502)
- GoReleaser configuration upgraded to version 2 (version: 2, updated brews/scoops/nfpms blocks, improved archive naming). (#529)
- GitHub Actions release workflow updated: newer actions versions (checkout, setup-go, goreleaser-action) and Go toolchain version aligned with go.mod. (#528)
- Documentation:
- README updated to remove references to the old server topic (e.g. sampctl server init) that no longer exists as a subcommand. (#518)
---
Fixed
- Runtime / config: RootLink handling corrected so it is no longer treated as a pointer incorrectly. (#526)
- Compiler & tooling: Added explicit compiler-path handling and extra safety checks to ensure the configured compiler is valid before running. (#526)
- Fixed Earthly builds after the project restructure so CI builds complete successfully again. (#526)
- Testing & compatibility: Updated y_testing regex to match changed line formats, restoring test support. (#526)
- Additional fixes for better compatibility with open.mp ecosystems. (#526)
- GoReleaser: Removed deprecated GoReleaser fields and migrated snapshot configuration to version_template. (#530)
- Adjusted main entry in .goreleaser.yml to point at the src directory so releases build correctly. (#531)
---
Removed
- Darwin/macOS builds
- darwin removed from the list of GoReleaser target OSes; sampctl is no longer built for macOS. (#532)
---
Internal / CI
- Hardened the release workflow to reduce the chance of running without tags and to align with current GitHub Actions best practices. (#528)
---
Contributors for 1.12.0
- @ADRFranklin
- @nowpydev
1.11.32023-05-18
Changelog
* 357b075 Merge pull request #501 from Southclaws/dev
* d6d1727 ci: updated release actions
* 3359cc1 Merge pull request #500 from Southclaws/dev
* c793808 fix: we now detect if windows is above v1809 and use the new pty or fallback to the old tty
* 886e978 chore: remove extra error line from compiler errors on windows as they require information we don't have
* 8146756 fix: compiler output was incorrectly parsed and channels where blocking causing a hang when building
* 7918d37 Merge pull request #490 from Southclaws/dev
* 94c0d59 chore: updated both brew and scoop
* 761c2ea Update .goreleaser.yml (#489)
* 746f7cf add homebrew config
* acd05a0 add scoop manifest
* 2bc5d15 Merge pull request #488 from Southclaws/dev
1.11.02022-12-02
Changelog
* 0736c4c ci: github permissions allows specifying write permission for packages on a per workflow basis
* 2717b82 Merge pull request #487 from Southclaws/dev
94771d1 ci: try using actor instead of repositoryowner as docker login auth
* bb9af64 Merge pull request #486 from Southclaws/dev
* 112df6c ci: make sure to login to github registry before running goreleaser
* db13d58 Merge pull request #485 from Southclaws/dev
* 671197c ci: swapped from earthly back to workflows just for release
* 0059661 Merge pull request #484 from Southclaws/dev
* c05ad27 Merge branch 'master' into dev
* 1fa1124 chore: fix type with github container registry domain
404a619 fix: add GITHUBTOKEN that points to secrets for eathly build on master (#483)
25f85f9 fix: add GITHUBTOKEN that points to secrets for eathly build on master
* ee030b2 v1.11.0 (#482)
* e798357 Merge pull request #461 from DEntis-T/patch-1
* 5b38854 Fix the version
1.10.02022-02-12
Changelog
* 4f2317e Merge pull request #455 from Southclaws/goreleaser-fix
* 2a29428 fix(ci): binaries is now deprecated for goreleaser
* 80a4a00 Merge pull request #451 from Southclaws/v1.9.2
* 4132994 fix(build): fix include paths being overwritten by local package
* f2f8d2a fix(compiler): handle error when compiler fails
* d990b57 chore(workflow): updated go versions
* 37ab179 chore(project): updated all dependencies
* 14ec61b fix(package): build not returning error when it fails
* 06e6ff5 feat(compiler): added ntstatus codes for Windows
* be84046 fix(test): updated more incorrect repository owner for github
* 9892b68 fix(tests): fixed generated test file using the wrong repository owner
* fa88cf5 fix(test): revert changing a test for specific package
* 2d84f46 chore: update pawn standard libs links
* 6c79f13 fix(test): fixed standard pawn packages changing ownerships
* bd6a302 fix(test): formatting causes tests to fail
* cb6804b fix(test): fixed tests failing
* 3dc9559 chore(entry): sets the output file location to be in gamemodes folder on init
* 0ea40c5 chore(ensure): removed creating folders when ensuring
* a41ebdf chore(tags): add a default tag when initialsing a package
* b0a5b07 chore(init): hide warnings for missing versioning when initialising
* 4824bdf chore(cli): removed server subcommands entirely
* db80c36 fix(init): fixed entry point not being created on init
* d7da4b3 chore(toml): removed toml checks and messages
* da0f34f fix(cli): fixed failing on empty error
* 57d64cd Fix pty issues on Linux, see https://github.com/creack/pty/issues/96
* b393fe0 Minor fixes (#419)
* 15960de Return without setting an error for include packages (#423)
* b3c0e0b Fixed a panic when a repo folder did not exist before cloning (#427)
* fd1e11a Adds a tag if one is not present when installing a new dependency (#428)
* 55af089 Added the ability to run pre/post build commands (#429)
* a55a8ca Cache has been moved to the proper OS accepted locations, and old cache is cleaned up in the process (#430)
* 5670f2e Adds the main package to the list of include paths (#431)
* dd23b35 Fixes runtime structs being written to yaml by upgrading to v3 (#432)
* 35a6dfe exported RunPrepare
* 8b412f0 attempt to fix the token for releases
* 47f74f3 ignore text output (#410)
* 9b56e4f untangled package context from rook package (#409)
* 7e6086d exported RunPrepare
* 2daeb58 add allow unsecure commands flag (#424)