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
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,6 @@

# Coverage reports
/coverage/

# Snap build artifacts
*.snap
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -219,10 +219,20 @@ steps:

## Installation

### GitHub Action

The action automatically downloads the pre-built binary for the specified version. No additional setup is required.

**Note:** Prebuilt binaries are only available for immutable release tags (e.g., `@v1.2.3`). Major tags like `@v1` will build from source on each run.

### Snap Package

Install from the Snap Store:

```bash
sudo snap install gitlance
```

## Building Locally

### Using Task
Expand Down
39 changes: 39 additions & 0 deletions snap/snapcraft.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# SPDX-FileCopyrightText: Canonical Ltd.
#
# SPDX-License-Identifier: Apache-2.0

name: gitlance
base: core24
version: git
summary: Vigilance for your Git commits
description: |
A tool for validating Git commit messages.

title: gitlance
contact: https://github.com/canonical/gitlance/issues
issues: https://github.com/canonical/gitlance/issues
source-code: https://github.com/canonical/gitlance
website: https://github.com/canonical/gitlance

grade: stable
confinement: strict
license: Apache-2.0

platforms:
amd64:

apps:
gitlance:
command: bin/gitlance
plugs:
- home

parts:
gitlance:
plugin: rust
source: .
rust-channel: stable
build-packages:
# Required by git2 crate's libgit2-sys dependency
- pkg-config
- libssl-dev
Loading