Compare commits
3 Commits
v0.1.27-rc
...
v0.1.27-rc
| Author | SHA1 | Date |
|---|---|---|
|
|
cba3855ce3 | |
|
|
7dd69d6973 | |
|
|
e049842194 |
|
|
@ -5,7 +5,7 @@ coverage = 92.72
|
|||
|
||||
[last_run_clean.run_duration]
|
||||
secs = 62
|
||||
nanos = 51839113
|
||||
nanos = 238260804
|
||||
|
||||
[last_run_incremental]
|
||||
run_status = "Success"
|
||||
|
|
|
|||
10
CHANGELOG.md
10
CHANGELOG.md
|
|
@ -6,6 +6,13 @@ All notable changes to John Slop are recorded here. The format follows
|
|||
|
||||
## [Unreleased]
|
||||
|
||||
## [0.1.27-rc.7] - 2026-09-30
|
||||
|
||||
### Fixed
|
||||
|
||||
- Used the publisher's repository fallback mapping so releases reach the HTTPS
|
||||
proxy while the developer SSH origin remains unchanged.
|
||||
|
||||
## [0.1.27-rc.6] - 2026-09-30
|
||||
|
||||
### Fixed
|
||||
|
|
@ -197,7 +204,8 @@ All notable changes to John Slop are recorded here. The format follows
|
|||
- Stdio LSP replacement diagnostics and versioned quick fixes.
|
||||
- Runnable examples, reviewed fixtures, fuzz targets, benchmarks, and CI gates.
|
||||
|
||||
[Unreleased]: https://proxy.dandaedre.com/gitea/idle-org/john-slop/compare/v0.1.27-rc.6...HEAD
|
||||
[Unreleased]: https://proxy.dandaedre.com/gitea/idle-org/john-slop/compare/v0.1.27-rc.7...HEAD
|
||||
[0.1.27-rc.7]: https://proxy.dandaedre.com/gitea/idle-org/john-slop/compare/v0.1.27-rc.6...v0.1.27-rc.7
|
||||
[0.1.27-rc.6]: https://proxy.dandaedre.com/gitea/idle-org/john-slop/compare/v0.1.27-rc.5...v0.1.27-rc.6
|
||||
[0.1.27-rc.5]: https://proxy.dandaedre.com/gitea/idle-org/john-slop/compare/v0.1.27-rc.4...v0.1.27-rc.5
|
||||
[0.1.27-rc.4]: https://proxy.dandaedre.com/gitea/idle-org/john-slop/compare/v0.1.27-rc.3...v0.1.27-rc.4
|
||||
|
|
|
|||
|
|
@ -699,7 +699,7 @@ checksum = "8f42a60cbdf9a97f5d2305f08a87dc4e09308d1276d28c869c684d7777685682"
|
|||
|
||||
[[package]]
|
||||
name = "john-slop"
|
||||
version = "0.1.27-rc.6"
|
||||
version = "0.1.27-rc.7"
|
||||
dependencies = [
|
||||
"clap",
|
||||
"criterion",
|
||||
|
|
@ -724,7 +724,7 @@ dependencies = [
|
|||
|
||||
[[package]]
|
||||
name = "john-slop-core"
|
||||
version = "0.1.27-rc.6"
|
||||
version = "0.1.27-rc.7"
|
||||
dependencies = [
|
||||
"directories",
|
||||
"figment",
|
||||
|
|
@ -742,7 +742,7 @@ dependencies = [
|
|||
|
||||
[[package]]
|
||||
name = "john-slop-lsp"
|
||||
version = "0.1.27-rc.6"
|
||||
version = "0.1.27-rc.7"
|
||||
dependencies = [
|
||||
"john-slop-core",
|
||||
"serde_json",
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ default-members = [".", "crates/john-slop-core", "crates/john-slop-lsp"]
|
|||
resolver = "3"
|
||||
|
||||
[workspace.package]
|
||||
version = "0.1.27-rc.6"
|
||||
version = "0.1.27-rc.7"
|
||||
edition = "2024"
|
||||
rust-version = "1.98.1"
|
||||
license = "MIT"
|
||||
|
|
@ -18,8 +18,8 @@ figment = { version = "0.10.19", default-features = false, features = ["toml"] }
|
|||
futures = { version = "0.3.34", default-features = false, features = ["std"] }
|
||||
globset = { version = "0.4.20", default-features = false }
|
||||
insta = { version = "1.48.0", default-features = false }
|
||||
john-slop-core = { version = "0.1.27-rc.6", path = "crates/john-slop-core" }
|
||||
john-slop-lsp-engine = { package = "john-slop-lsp", version = "0.1.27-rc.6", path = "crates/john-slop-lsp" }
|
||||
john-slop-core = { version = "0.1.27-rc.7", path = "crates/john-slop-core" }
|
||||
john-slop-lsp-engine = { package = "john-slop-lsp", version = "0.1.27-rc.7", path = "crates/john-slop-lsp" }
|
||||
miette = { version = "7.6.0", default-features = false, features = ["derive"] }
|
||||
regex = "1.13.1"
|
||||
serde = { version = "1.0.229", features = ["derive"] }
|
||||
|
|
|
|||
11
README.md
11
README.md
|
|
@ -10,7 +10,16 @@ for human review; it does not prove AI authorship or identify a model.
|
|||
|
||||
## Quickstart
|
||||
|
||||
Rust 1.98.1 or newer is required. Install from the upstream Git repository:
|
||||
With `cargo-binstall` available, install all three prebuilt binaries from the
|
||||
latest release candidate:
|
||||
|
||||
```sh
|
||||
cargo binstall --git https://proxy.dandaedre.com/gitea/idle-org/john-slop \
|
||||
john-slop
|
||||
```
|
||||
|
||||
To build from source, Rust 1.98.1 or newer is required. Install from the
|
||||
upstream Git repository:
|
||||
|
||||
```sh
|
||||
cargo install --git https://proxy.dandaedre.com/gitea/idle-org/john-slop \
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="124" height="18" role="img" aria-label="version: 0.1.27-rc.6"><title>version: 0.1.27-rc.6</title><linearGradient id="bms-b4bad30933696ee3" x2="0" y2="100%"><stop offset="0" stop-color="#fff" stop-opacity=".7"/><stop offset=".1" stop-color="#aaa" stop-opacity=".1"/><stop offset=".9" stop-color="#000" stop-opacity=".3"/><stop offset="1" stop-color="#000" stop-opacity=".5"/></linearGradient><clipPath id="bmr-b4bad30933696ee3"><rect width="124" height="18" rx="4" fill="#fff"/></clipPath><g clip-path="url(#bmr-b4bad30933696ee3)"><rect width="51" height="18" fill="#555"/><rect x="51" width="73" height="18" fill="#fe7d37"/><rect width="124" height="18" fill="url(#bms-b4bad30933696ee3)"/></g><g fill="#fff" text-anchor="middle" font-family="Verdana,Geneva,DejaVu Sans,sans-serif" text-rendering="geometricPrecision" font-size="110"><text aria-hidden="true" x="265" y="140" fill="#010101" fill-opacity=".3" transform="scale(.1)" textLength="410">version</text><text x="265" y="130" transform="scale(.1)" fill="#fff" textLength="410">version</text><text aria-hidden="true" x="865" y="140" fill="#010101" fill-opacity=".3" transform="scale(.1)" textLength="630">0.1.27-rc.6</text><text x="865" y="130" transform="scale(.1)" fill="#fff" textLength="630">0.1.27-rc.6</text></g></svg>
|
||||
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="124" height="18" role="img" aria-label="version: 0.1.27-rc.7"><title>version: 0.1.27-rc.7</title><linearGradient id="bms-574ac137cd70c506" x2="0" y2="100%"><stop offset="0" stop-color="#fff" stop-opacity=".7"/><stop offset=".1" stop-color="#aaa" stop-opacity=".1"/><stop offset=".9" stop-color="#000" stop-opacity=".3"/><stop offset="1" stop-color="#000" stop-opacity=".5"/></linearGradient><clipPath id="bmr-574ac137cd70c506"><rect width="124" height="18" rx="4" fill="#fff"/></clipPath><g clip-path="url(#bmr-574ac137cd70c506)"><rect width="51" height="18" fill="#555"/><rect x="51" width="73" height="18" fill="#fe7d37"/><rect width="124" height="18" fill="url(#bms-574ac137cd70c506)"/></g><g fill="#fff" text-anchor="middle" font-family="Verdana,Geneva,DejaVu Sans,sans-serif" text-rendering="geometricPrecision" font-size="110"><text aria-hidden="true" x="265" y="140" fill="#010101" fill-opacity=".3" transform="scale(.1)" textLength="410">version</text><text x="265" y="130" transform="scale(.1)" fill="#fff" textLength="410">version</text><text aria-hidden="true" x="865" y="140" fill="#010101" fill-opacity=".3" transform="scale(.1)" textLength="630">0.1.27-rc.7</text><text x="865" y="130" transform="scale(.1)" fill="#fff" textLength="630">0.1.27-rc.7</text></g></svg>
|
||||
|
Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 1.3 KiB |
|
|
@ -52,11 +52,11 @@ then pass the path of a readable Gitea token file to the repository wrapper:
|
|||
|
||||
The wrapper keeps the token out of command-line arguments, exports it as
|
||||
`GITEA_TOKEN` only to `rust_realease`, selects the `john-slop` workspace package,
|
||||
and publishes cargo-binstall archives alongside raw binary artifacts. It
|
||||
temporarily selects the canonical HTTPS
|
||||
origin for publication, then restores the SSH development origin after both
|
||||
successful and failed attempts. A hyphenated Cargo version such as
|
||||
`0.1.27-rc.6` automatically marks the Gitea release as a prerelease. Additional
|
||||
and publishes cargo-binstall archives alongside raw binary artifacts. The
|
||||
project-local `rust-release.toml` maps the SSH development origin to the
|
||||
canonical HTTPS proxy for release API and download operations without modifying
|
||||
the Git remote. A hyphenated Cargo version such as
|
||||
`0.1.27-rc.7` automatically marks the Gitea release as a prerelease. Additional
|
||||
arguments are forwarded, so use `--dry-run` before publication and
|
||||
`--replace-assets` only after reviewing an existing release collision. The
|
||||
checkout must be clean and its local and remote `vX.Y.Z` tag must match the
|
||||
|
|
|
|||
|
|
@ -385,7 +385,7 @@ dependencies = [
|
|||
|
||||
[[package]]
|
||||
name = "john-slop-core"
|
||||
version = "0.1.27-rc.6"
|
||||
version = "0.1.27-rc.7"
|
||||
dependencies = [
|
||||
"directories",
|
||||
"figment",
|
||||
|
|
@ -411,7 +411,7 @@ dependencies = [
|
|||
|
||||
[[package]]
|
||||
name = "john-slop-lsp"
|
||||
version = "0.1.27-rc.6"
|
||||
version = "0.1.27-rc.7"
|
||||
dependencies = [
|
||||
"john-slop-core",
|
||||
"serde_json",
|
||||
|
|
@ -422,7 +422,7 @@ dependencies = [
|
|||
|
||||
[[package]]
|
||||
name = "john-slop"
|
||||
version = "0.1.27-rc.6"
|
||||
version = "0.1.27-rc.7"
|
||||
dependencies = [
|
||||
"clap",
|
||||
"globset",
|
||||
|
|
|
|||
34
release.sh
34
release.sh
|
|
@ -30,32 +30,6 @@ export GITEA_TOKEN
|
|||
|
||||
repository_dir=$(CDPATH= cd -- "$(dirname -- "$0")" && pwd)
|
||||
manifest_version=$(sed -n 's/^version = "\([^"]*\)"/\1/p' "$repository_dir/Cargo.toml" | head -n 1)
|
||||
release_origin=https://proxy.dandaedre.com/gitea/idle-org/john-slop
|
||||
development_origin=git@git.dandaedre.com:idle-org/john-slop.git
|
||||
|
||||
if ! git -C "$repository_dir" remote get-url origin >/dev/null 2>&1; then
|
||||
echo "Git origin is not configured for $repository_dir" >&2
|
||||
exit 2
|
||||
fi
|
||||
|
||||
origin_switched=false
|
||||
restore_development_origin() {
|
||||
if [ "$origin_switched" = true ]; then
|
||||
if git -C "$repository_dir" remote set-url origin "$development_origin"; then
|
||||
origin_switched=false
|
||||
else
|
||||
echo "error: failed to restore Git origin to $development_origin" >&2
|
||||
return 1
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
git -C "$repository_dir" remote set-url origin "$release_origin"
|
||||
origin_switched=true
|
||||
trap 'restore_development_origin || :' 0
|
||||
trap 'exit 129' 1
|
||||
trap 'exit 130' 2
|
||||
trap 'exit 143' 15
|
||||
|
||||
set -- \
|
||||
"$repository_dir" \
|
||||
|
|
@ -66,10 +40,4 @@ case "$manifest_version" in
|
|||
*-*) set -- "$@" --prerelease ;;
|
||||
esac
|
||||
|
||||
release_status=0
|
||||
rust_realease "$@" || release_status=$?
|
||||
if ! restore_development_origin; then
|
||||
exit 2
|
||||
fi
|
||||
trap - 0 1 2 15
|
||||
exit "$release_status"
|
||||
exec rust_realease "$@"
|
||||
|
|
|
|||
|
|
@ -0,0 +1,3 @@
|
|||
[[repository.fallbacks]]
|
||||
origin = "git@git.dandaedre.com:idle-org/john-slop.git"
|
||||
fallback-url = "https://proxy.dandaedre.com/gitea/idle-org/john-slop"
|
||||
18
tasks.md
18
tasks.md
|
|
@ -842,6 +842,24 @@ MSRV, RustSec, dependency policy, package assembly, exact binary versions, and
|
|||
92.72% clean coverage passed. Earlier RC tags remain unchanged before RC6 is
|
||||
tagged and published.
|
||||
|
||||
## Release candidate 0.1.27-rc.7
|
||||
|
||||
- [x] Replace release-time Git origin mutation with the publisher's project-local
|
||||
repository fallback mapping and retain the SSH development remote unchanged.
|
||||
- [x] Synchronize and verify release artifacts at `0.1.27-rc.7`, then create and
|
||||
push immutable prerelease tag `v0.1.27-rc.7` without moving earlier RC tags.
|
||||
|
||||
Acceptance: the publisher inspection resolves the RC7 package and tag through
|
||||
the fallback-aware project configuration; the integration test observes the SSH
|
||||
origin during successful and failed publisher invocations; and all standard
|
||||
release gates remain green.
|
||||
|
||||
Accepted on 2026-09-30: formatting, Clippy, both feature test matrices,
|
||||
documentation, RustSec, dependency policy, workspace package assembly, exact
|
||||
binary versions, publisher inspection, and 92.72% clean coverage passed. All
|
||||
workspace metadata, lockfiles, evaluation sign-off, changelog, and the generated
|
||||
version badge agree on `0.1.27-rc.7`; earlier RC tags remain unchanged.
|
||||
|
||||
## Deferred by design
|
||||
|
||||
- Statistical or model-based authorship classification.
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
schema_version = 1
|
||||
release = "0.1.27-rc.6"
|
||||
release = "0.1.27-rc.7"
|
||||
reviewed_on = "2026-09-30"
|
||||
status = "accepted-with-runtime-catalog-boundary"
|
||||
catalog_sha256 = "da34ce00dfd2d801e772fa440d932abb98c929f5ad08ff3ad5e47e0ed4d84d5a"
|
||||
|
|
|
|||
|
|
@ -9,8 +9,10 @@ use std::{
|
|||
|
||||
use tempfile::TempDir;
|
||||
|
||||
const RELEASE_ORIGIN: &str = "https://proxy.dandaedre.com/gitea/idle-org/john-slop";
|
||||
const DEVELOPMENT_ORIGIN: &str = "git@git.dandaedre.com:idle-org/john-slop.git";
|
||||
const RELEASE_CONFIG: &str = "[[repository.fallbacks]]\n\
|
||||
origin = \"git@git.dandaedre.com:idle-org/john-slop.git\"\n\
|
||||
fallback-url = \"https://proxy.dandaedre.com/gitea/idle-org/john-slop\"\n";
|
||||
|
||||
fn run(command: &mut Command) -> Output {
|
||||
command.output().expect("test command should start")
|
||||
|
|
@ -24,7 +26,7 @@ fn git(repository: &Path, arguments: &[&str]) -> Output {
|
|||
}
|
||||
|
||||
#[test]
|
||||
fn release_wrapper_uses_https_then_restores_ssh_on_every_exit() {
|
||||
fn release_wrapper_uses_repository_fallback_without_changing_origin() {
|
||||
for release_status in [0, 17] {
|
||||
let temporary = TempDir::new().expect("temporary directory should be created");
|
||||
let repository = temporary.path().join("repository");
|
||||
|
|
@ -37,6 +39,11 @@ fn release_wrapper_uses_https_then_restores_ssh_on_every_exit() {
|
|||
repository.join("release.sh"),
|
||||
)
|
||||
.expect("release wrapper should be copied");
|
||||
fs::copy(
|
||||
Path::new(env!("CARGO_MANIFEST_DIR")).join("rust-release.toml"),
|
||||
repository.join("rust-release.toml"),
|
||||
)
|
||||
.expect("release configuration should be copied");
|
||||
fs::write(
|
||||
repository.join("Cargo.toml"),
|
||||
"[package]\nname = \"john-slop\"\nversion = \"0.1.27-rc.6\"\n",
|
||||
|
|
@ -51,6 +58,7 @@ fn release_wrapper_uses_https_then_restores_ssh_on_every_exit() {
|
|||
"#!/bin/sh\n\
|
||||
[ \"$GITEA_TOKEN\" = test-token ] || exit 91\n\
|
||||
git -C \"$1\" remote get-url origin >\"$OBSERVED_ORIGIN\"\n\
|
||||
cat \"$1/rust-release.toml\" >\"$OBSERVED_CONFIG\"\n\
|
||||
printf '%s\\n' \"$@\" >\"$OBSERVED_ARGS\"\n\
|
||||
exit \"$FAKE_RELEASE_STATUS\"\n",
|
||||
)
|
||||
|
|
@ -73,6 +81,7 @@ fn release_wrapper_uses_https_then_restores_ssh_on_every_exit() {
|
|||
);
|
||||
|
||||
let observed_origin = temporary.path().join("observed-origin.txt");
|
||||
let observed_config = temporary.path().join("observed-config.toml");
|
||||
let observed_args = temporary.path().join("observed-args.txt");
|
||||
let path = format!(
|
||||
"{}:{}",
|
||||
|
|
@ -84,6 +93,7 @@ fn release_wrapper_uses_https_then_restores_ssh_on_every_exit() {
|
|||
.arg("--dry-run")
|
||||
.env("PATH", path)
|
||||
.env("OBSERVED_ORIGIN", &observed_origin)
|
||||
.env("OBSERVED_CONFIG", &observed_config)
|
||||
.env("OBSERVED_ARGS", &observed_args)
|
||||
.env("FAKE_RELEASE_STATUS", release_status.to_string()));
|
||||
|
||||
|
|
@ -92,7 +102,12 @@ fn release_wrapper_uses_https_then_restores_ssh_on_every_exit() {
|
|||
fs::read_to_string(&observed_origin)
|
||||
.expect("fake release should record the temporary origin")
|
||||
.trim(),
|
||||
RELEASE_ORIGIN
|
||||
DEVELOPMENT_ORIGIN
|
||||
);
|
||||
assert_eq!(
|
||||
fs::read_to_string(&observed_config)
|
||||
.expect("fake release should record the project configuration"),
|
||||
RELEASE_CONFIG
|
||||
);
|
||||
assert_eq!(
|
||||
String::from_utf8(git(&repository, &["remote", "get-url", "origin"]).stdout)
|
||||
|
|
|
|||
Loading…
Reference in New Issue