From 63117caa6d1cef44d385806466ab9ffb1f53bcc4 Mon Sep 17 00:00:00 2001 From: wheakerd Date: Thu, 12 Nov 2026 23:33:13 -0800 Subject: [PATCH] Name the repository in the super-kernel-tools organization The repository moved from `super-kernel/skernel` to `super-kernel-tools/skernel`. `self-update` reads the latest release from the new address, the configuration schema's `$id` names it, and both READMEs link to it. GitHub redirects the old addresses: a binary released before the move still reads the latest release through them. The Composer name stays `super-kernel/skernel`. The test suite and the format check pass. Co-Authored-By: Claude --- README.md | 16 ++++++++-------- README.zh-CN.md | 16 ++++++++-------- skernel.schema.json | 2 +- src/Update/SelfUpdater.php | 2 +- 4 files changed, 18 insertions(+), 18 deletions(-) diff --git a/README.md b/README.md index c2586a4..88f7d9c 100644 --- a/README.md +++ b/README.md @@ -7,14 +7,14 @@ `super-kernel/skernel` is SKERNEL, the command-line project tool for SuperKernel applications. It is itself built as a SuperKernel console application and is distributed as a standalone binary. > [!NOTE] -> SKERNEL is under active development. It provides the `new`, `run`, `build`, `package`, `clean`, and `self-update` commands. Its console also offers SKERNEL's `help` and `list` commands, Symfony Console's `completion` command, and the `--version` option. Binaries are published through this repository's [GitHub Releases](https://github.com/super-kernel/skernel/releases). +> SKERNEL is under active development. It provides the `new`, `run`, `build`, `package`, `clean`, and `self-update` commands. Its console also offers SKERNEL's `help` and `list` commands, Symfony Console's `completion` command, and the `--version` option. Binaries are published through this repository's [GitHub Releases](https://github.com/super-kernel-tools/skernel/releases). ## Installation -Download the binary for your platform, one of `linux-x86_64`, `linux-aarch64`, `macos-aarch64`, and `macos-x86_64`, from the [latest release](https://github.com/super-kernel/skernel/releases/latest). It needs no PHP. +Download the binary for your platform, one of `linux-x86_64`, `linux-aarch64`, `macos-aarch64`, and `macos-x86_64`, from the [latest release](https://github.com/super-kernel-tools/skernel/releases/latest). It needs no PHP. ```bash -curl -fsSL -o skernel https://github.com/super-kernel/skernel/releases/latest/download/skernel-linux-x86_64 +curl -fsSL -o skernel https://github.com/super-kernel-tools/skernel/releases/latest/download/skernel-linux-x86_64 chmod +x skernel ./skernel --version ``` @@ -35,7 +35,7 @@ A project's settings for SKERNEL's commands are read from `skernel.json` in the ```json { - "$schema": "https://raw.githubusercontent.com/super-kernel/skernel/main/skernel.schema.json", + "$schema": "https://raw.githubusercontent.com/super-kernel-tools/skernel/main/skernel.schema.json", "php": "8.4", "composer": "composer", "run": { @@ -138,7 +138,7 @@ clean [-d|--working-dir=] self-update ``` -`self-update` replaces a standalone SKERNEL with the binary of the [latest GitHub Release](https://github.com/super-kernel/skernel/releases/latest), named `skernel-`, such as `skernel-linux-x86_64`. The download is verified against the SHA-256 digest that GitHub reports for it, and the binary keeps its permissions. When SKERNEL already has that version, nothing is downloaded; any other version is replaced. +`self-update` replaces a standalone SKERNEL with the binary of the [latest GitHub Release](https://github.com/super-kernel-tools/skernel/releases/latest), named `skernel-`, such as `skernel-linux-x86_64`. The download is verified against the SHA-256 digest that GitHub reports for it, and the binary keeps its permissions. When SKERNEL already has that version, nothing is downloaded; any other version is replaced. Running from source, a latest release that cannot be read or has no verified binary for the platform, or a binary that cannot be replaced prints a short message on STDERR and exits with status 1. @@ -194,9 +194,9 @@ A missing `composer.lock`, a runtime file that is not found, a failed installati ## Releases -Pushing a tag that is a [SemVer 2.0](https://semver.org) version, such as `1.2.3` or `1.3.0-rc.1`, without a `v` prefix, publishes a [GitHub Release](https://github.com/super-kernel/skernel/releases) with a binary for each of `linux-x86_64`, `linux-aarch64`, `macos-aarch64`, and `macos-x86_64`. Each binary is checked by creating, packaging, and serving a project before anything is published. Any other tag fails. +Pushing a tag that is a [SemVer 2.0](https://semver.org) version, such as `1.2.3` or `1.3.0-rc.1`, without a `v` prefix, publishes a [GitHub Release](https://github.com/super-kernel-tools/skernel/releases) with a binary for each of `linux-x86_64`, `linux-aarch64`, `macos-aarch64`, and `macos-x86_64`. Each binary is checked by creating, packaging, and serving a project before anything is published. Any other tag fails. -The newest tag is always the [latest release](https://github.com/super-kernel/skernel/releases/latest), which `self-update` installs, whatever its version says. SKERNEL keeps no older version line and does not support moving back to an older version. +The newest tag is always the [latest release](https://github.com/super-kernel-tools/skernel/releases/latest), which `self-update` installs, whatever its version says. SKERNEL keeps no older version line and does not support moving back to an older version. ## Requirements @@ -208,7 +208,7 @@ The newest tag is always the [latest release](https://github.com/super-kernel/sk To work on SKERNEL itself, run it from a clone of this repository. Every start from source first generates SKERNEL's own build artifacts in its `vendor/.cache`, the way `build` does for a project but without Composer, so a change to SKERNEL's sources takes effect at the next start; two starts from the same clone wait for each other while one of them generates. SKERNEL's own autoloader is authoritative, so run `composer dump-autoload` after adding a class to SKERNEL. SKERNEL can be started from any directory and works on the project in the current directory, or in the one given with `-d`: ```bash -git clone https://github.com/super-kernel/skernel.git +git clone https://github.com/super-kernel-tools/skernel.git cd skernel composer install --no-dev php bin/bootstrap.php list diff --git a/README.zh-CN.md b/README.zh-CN.md index 013eb7c..8b667d1 100644 --- a/README.zh-CN.md +++ b/README.zh-CN.md @@ -7,14 +7,14 @@ `super-kernel/skernel` 即 SKERNEL,是 SuperKernel 应用的命令行项目工具。它本身也是用 SuperKernel 构建的控制台应用,以独立的二进制文件发布。 > [!NOTE] -> SKERNEL 仍在积极开发中。目前提供 `new`、`run`、`build`、`package`、`clean` 和 `self-update` 命令。控制台另有 SKERNEL 自己的 `help` 和 `list` 命令、Symfony Console 的 `completion` 命令,以及 `--version` 选项。二进制文件通过本仓库的 [GitHub Releases](https://github.com/super-kernel/skernel/releases) 发布。 +> SKERNEL 仍在积极开发中。目前提供 `new`、`run`、`build`、`package`、`clean` 和 `self-update` 命令。控制台另有 SKERNEL 自己的 `help` 和 `list` 命令、Symfony Console 的 `completion` 命令,以及 `--version` 选项。二进制文件通过本仓库的 [GitHub Releases](https://github.com/super-kernel-tools/skernel/releases) 发布。 ## 安装 -从[最新发布](https://github.com/super-kernel/skernel/releases/latest)下载适合你平台的二进制,平台有 `linux-x86_64`、`linux-aarch64`、`macos-aarch64` 和 `macos-x86_64`。它不需要 PHP。 +从[最新发布](https://github.com/super-kernel-tools/skernel/releases/latest)下载适合你平台的二进制,平台有 `linux-x86_64`、`linux-aarch64`、`macos-aarch64` 和 `macos-x86_64`。它不需要 PHP。 ```bash -curl -fsSL -o skernel https://github.com/super-kernel/skernel/releases/latest/download/skernel-linux-x86_64 +curl -fsSL -o skernel https://github.com/super-kernel-tools/skernel/releases/latest/download/skernel-linux-x86_64 chmod +x skernel ./skernel --version ``` @@ -35,7 +35,7 @@ SKERNEL 把 WARNING 及以上级别的日志(包括框架的异常报告)写 ```json { - "$schema": "https://raw.githubusercontent.com/super-kernel/skernel/main/skernel.schema.json", + "$schema": "https://raw.githubusercontent.com/super-kernel-tools/skernel/main/skernel.schema.json", "php": "8.4", "composer": "composer", "run": { @@ -138,7 +138,7 @@ clean [-d|--working-dir=] self-update ``` -`self-update` 把独立的 SKERNEL 替换为[最新 GitHub Release](https://github.com/super-kernel/skernel/releases/latest) 中名为 `skernel-` 的二进制,例如 `skernel-linux-x86_64`。下载内容按 GitHub 报告的 SHA-256 摘要校验,二进制保留原有权限。SKERNEL 已经是该版本时不会下载;其他任何版本都会被替换。 +`self-update` 把独立的 SKERNEL 替换为[最新 GitHub Release](https://github.com/super-kernel-tools/skernel/releases/latest) 中名为 `skernel-` 的二进制,例如 `skernel-linux-x86_64`。下载内容按 GitHub 报告的 SHA-256 摘要校验,二进制保留原有权限。SKERNEL 已经是该版本时不会下载;其他任何版本都会被替换。 从源码运行、无法读取最新 Release 或其中没有当前平台可校验的二进制、无法替换二进制时,会在 STDERR 上打印一条简短的提示,退出码为 1。 @@ -194,9 +194,9 @@ Package written to /path/to/my-app/target/my-app. ## 发布 -推送一个符合 [SemVer 2.0](https://semver.org) 的标签(例如 `1.2.3` 或 `1.3.0-rc.1`,不带 `v` 前缀)就会发布一个 [GitHub Release](https://github.com/super-kernel/skernel/releases),其中包含 `linux-x86_64`、`linux-aarch64`、`macos-aarch64` 和 `macos-x86_64` 各一个二进制。发布之前,每个二进制都要通过创建、打包并运行一个项目的检查。其他标签会失败。 +推送一个符合 [SemVer 2.0](https://semver.org) 的标签(例如 `1.2.3` 或 `1.3.0-rc.1`,不带 `v` 前缀)就会发布一个 [GitHub Release](https://github.com/super-kernel-tools/skernel/releases),其中包含 `linux-x86_64`、`linux-aarch64`、`macos-aarch64` 和 `macos-x86_64` 各一个二进制。发布之前,每个二进制都要通过创建、打包并运行一个项目的检查。其他标签会失败。 -最新的标签始终是[最新发布](https://github.com/super-kernel/skernel/releases/latest),`self-update` 安装的就是它,无论版本号如何。SKERNEL 不维护旧版本线,也不支持退回旧版本。 +最新的标签始终是[最新发布](https://github.com/super-kernel-tools/skernel/releases/latest),`self-update` 安装的就是它,无论版本号如何。SKERNEL 不维护旧版本线,也不支持退回旧版本。 ## 环境要求 @@ -208,7 +208,7 @@ Package written to /path/to/my-app/target/my-app. 要开发 SKERNEL 本身,请从本仓库的克隆中运行它。每次从源码启动时,SKERNEL 都会像 `build` 为项目所做的那样(但不使用 Composer),先在自己的 `vendor/.cache` 中生成自己的构建产物,所以对 SKERNEL 源码的修改在下次启动时生效;同一个克隆的两次启动在其中一次生成期间会互相等待。SKERNEL 自己的 autoloader 是权威类映射,所以给 SKERNEL 新增类之后,请运行 `composer dump-autoload`。SKERNEL 可以在任意目录中启动,处理当前目录中的项目,或 `-d` 指定的目录中的项目: ```bash -git clone https://github.com/super-kernel/skernel.git +git clone https://github.com/super-kernel-tools/skernel.git cd skernel composer install --no-dev php bin/bootstrap.php list diff --git a/skernel.schema.json b/skernel.schema.json index c0b422a..04a2845 100644 --- a/skernel.schema.json +++ b/skernel.schema.json @@ -1,6 +1,6 @@ { "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "https://raw.githubusercontent.com/super-kernel/skernel/main/skernel.schema.json", + "$id": "https://raw.githubusercontent.com/super-kernel-tools/skernel/main/skernel.schema.json", "title": "SKERNEL configuration", "description": "The settings of a project for SKERNEL's commands, read from skernel.json or skernel.json.dist in the project root. A setting left out keeps its default.", "type": "object", diff --git a/src/Update/SelfUpdater.php b/src/Update/SelfUpdater.php index 06c8a83..79734f7 100644 --- a/src/Update/SelfUpdater.php +++ b/src/Update/SelfUpdater.php @@ -32,7 +32,7 @@ */ final class SelfUpdater { - private const string LATEST_RELEASE = 'https://api.github.com/repos/super-kernel/skernel/releases/latest'; + private const string LATEST_RELEASE = 'https://api.github.com/repos/super-kernel-tools/skernel/releases/latest'; private const string DIGEST_PREFIX = 'sha256:';