Skip to content

Commit

Permalink
add onchg for version
Browse files Browse the repository at this point in the history
  • Loading branch information
aksiksi committed Nov 18, 2023
1 parent fcdb8e9 commit 5f14f73
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
repos:
- repo: https://github.com/aksiksi/onchg-rs
rev: v0.1.6
hooks:
- id: onchg
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,12 @@ To top it all off, using Docker Compose on NixOS is fairly redundant as the feat

Install the `compose2nix` CLI via one of the following methods:

<!-- LINT.OnChange(version) -->
1. Install the command using `go`:
```
go install github.com/aksiksi/[email protected]
```
<!-- LINT.ThenChange(flake.nix:version, main.go:version) -->
2. Clone this repo and run `make build`.
3. Install the Flake and add the following to your NixOS config:
```nix
Expand Down
2 changes: 2 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@
forAllSystems = function: nixpkgs.lib.genAttrs supportedSystems (system: function nixpkgs.legacyPackages.${system});
pname = "compose2nix";
owner = "aksiksi";
# LINT.OnChange(version)
version = "0.1.4";
# LINT.ThenChange(main.go:version, README.md:version)
in {
# Nix package
packages = forAllSystems (pkgs: {
Expand Down
2 changes: 2 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@ import (
)

const (
// LINT.OnChange(version)
appVersion = "0.1.4"
// LINT.ThenChange(flake.nix:version,README.md:version)
)

// TODO(aksiksi): Investigate parsing flags into structs using the *Val functions.
Expand Down

0 comments on commit 5f14f73

Please sign in to comment.