From 220ebb8f0bb18d4499d57aa1f28cbb290dd420a3 Mon Sep 17 00:00:00 2001 From: Abhinav Gupta Date: Tue, 17 Nov 2026 15:23:59 -0800 Subject: [PATCH] Release v0.2.0 --- CHANGELOG.md | 9 ++++++++- README.md | 11 +++++++---- nix/package.nix | 2 +- 3 files changed, 16 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index daaabc6..382d7e6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,12 +6,18 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), ## [Unreleased] +## [0.2.0] - 2026-11-17 + ### Added - Import repositories containing Git submodules with their pins and original `.gitmodules` file. Submodules remain uninitialized. - Show usage and available flags with `layerctl --help` and `--help` on subcommands. +### Changed + +- Accept command flags before or after positional arguments. + ## [0.1.1] - 2026-11-17 ### Fixed @@ -33,6 +39,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), - Require manifest-based layers; the original `upstream.json` format and its migration commands are not supported. -[Unreleased]: https://github.com/NonLogicalDev/util.layerctl/compare/v0.1.1...HEAD +[Unreleased]: https://github.com/NonLogicalDev/util.layerctl/compare/v0.2.0...HEAD +[0.2.0]: https://github.com/NonLogicalDev/util.layerctl/compare/v0.1.1...v0.2.0 [0.1.1]: https://github.com/NonLogicalDev/util.layerctl/compare/v0.1.0...v0.1.1 [0.1.0]: https://github.com/NonLogicalDev/util.layerctl/releases/tag/v0.1.0 diff --git a/README.md b/README.md index 853e84a..edabc70 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,7 @@ Download a prebuilt archive and checksums from [GitHub Releases](https://github.com/NonLogicalDev/util.layerctl/releases), or install the tagged version with Go 1.26 or newer: ```sh -go install github.com/NonLogicalDev/util.layerctl/cmd/layerctl@v0.1.1 +go install github.com/NonLogicalDev/util.layerctl/cmd/layerctl@v0.2.0 ``` Git is required at runtime. @@ -28,16 +28,19 @@ Run the installed `layerctl` from the root or a subdirectory of the repository c With Nix flakes enabled, run the published release without cloning this repository: ```sh -nix run github:NonLogicalDev/util.layerctl/v0.1.1 -- --version +nix run github:NonLogicalDev/util.layerctl/v0.2.0 -- --version ``` Run layerctl commands from the Git repository containing your layer definitions. For example: ```sh -nix run github:NonLogicalDev/util.layerctl/v0.1.1 -- graph --format mermaid +nix run github:NonLogicalDev/util.layerctl/v0.2.0 -- graph --format mermaid ``` -The `v0.1.1` ref pins the release; omit it to run the default branch. From a layerctl checkout, use `nix run . -- --version` or `nix build` to build the package locally. +The `v0.2.0` ref pins the release. +Omit it to run the default branch. +From a layerctl checkout, use `nix run . -- --version` or `nix build` +to build the package locally. The flake exposes `packages..layerctl` and a default package for Linux and macOS on x86-64 and ARM64. It pins nixpkgs 26.05 because newer nixpkgs has dropped x86-64 macOS support. The package expression in `nix/package.nix` uses `buildGoModule` and accepts a `source` override, so it can be adapted for nixpkgs with a fixed upstream release and source hash. diff --git a/nix/package.nix b/nix/package.nix index abd6644..021a2de 100644 --- a/nix/package.nix +++ b/nix/package.nix @@ -11,7 +11,7 @@ buildGoModule (finalAttrs: { pname = "layerctl"; - version = "0.1.1"; + version = "0.2.0"; src = source; vendorHash = "sha256-OK7q/CQpa4gNWIPWHZPyew2Ym8NPkXqSDSzE92gYrKk="; ldflags = [ "-s" "-w" "-X main.version=${finalAttrs.version}" "-X main.commit=${revision}" ];