Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
11 changes: 7 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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.<system>.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.

Expand Down
2 changes: 1 addition & 1 deletion nix/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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}" ];
Expand Down
Loading