<!-- Generated by website/scripts/sync-docs.mjs from RELEASING.md. Edit that file, not this one. -->

# Releasing

> Every page of this site: https://dyokto.github.io/y509/docs/llms.txt

Releases are cut by pushing a `v*` tag. `.github/workflows/release.yml` runs GoReleaser, signs the checksums with cosign (keyless, GitHub OIDC), attests build provenance, and updates the Homebrew cask in `kanywst/homebrew-tap`.

## Unreleased: module path change

The repository moved from `kanywst/y509` to `dyokto/y509`, and `main` now declares `module github.com/dyokto/y509`. The latest release, v1.17.0, still declares `github.com/kanywst/y509`. The old and new paths share one set of tags, so once a tag with the new path exists, `go install github.com/kanywst/y509/cmd/y509@latest` resolves to it and fails with "module declares its path as: github.com/dyokto/y509". That break cannot be avoided without a separate repository for the old path. The order below makes it visible first: old-path users get a deprecation notice from v1.17.1, and v1.17.1 stays installable by its exact version.

1. Cut a patch release (v1.17.1) from a branch off `v1.17.0` whose `go.mod` keeps the old path and marks it deprecated:

    ```text
    // Deprecated: moved to github.com/dyokto/y509
    module github.com/kanywst/y509
    ```

    `go get` and `go list -m -u` then report the old path as deprecated, with the new path in the message. Leave some time between this release and the next so the notice reaches people. The branch also needs every action pinned to a full SHA, because the `dyokto` org rejects workflows with unpinned actions and the v1.17.0 release workflow would not start. #187 was squash-merged, so there is no single commit to cherry-pick; copy the workflow files from `main` instead. Branch `release/v1.17.1` has all of this already (the pins, the deprecated `go.mod` and a fresh CT log list). Tag it on that branch, not on `main`:

    ```text
    git tag -a v1.17.1 origin/release/v1.17.1
    ```

2. Cut the first release with the new path from `main` (v1.18.0). Start the release notes with:

    ```text
    go install github.com/dyokto/y509/cmd/y509@latest
    ```

    then the pinned fallback for the old path:

    ```text
    go install github.com/kanywst/y509/cmd/y509@v1.17.1
    ```

    followed by a note that code importing `github.com/kanywst/y509/pkg/certificate` must change its imports to `github.com/dyokto/y509/pkg/certificate`, and a note for packagers: the Go module path changed to `github.com/dyokto/y509`, and the `-X` ldflags paths changed to `github.com/dyokto/y509/internal/version.Version`, `.GitCommit` and `.BuildDate`.

Homebrew (`kanywst/tap`) and Scoop (`kanywst/scoop-bucket`) do not change.

## Verifying a release

Releases after v1.17.0 (the v1.17.1 deprecation release included) are built in `dyokto/y509` and signed by `https://github.com/dyokto/y509/.github/workflows/release.yml@refs/tags/<tag>`. Releases up to v1.17.0 carry the `kanywst/y509` identity. See [docs/guide/verify-releases.md](https://dyokto.github.io/y509/docs/verify-releases/) for both commands.
