Skip to content

Commit

Permalink
feat: release 3.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
kamadorueda committed Nov 4, 2024
1 parent 515cc37 commit 2bb91e3
Show file tree
Hide file tree
Showing 12 changed files with 987 additions and 159 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-entry.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ echo INFO: building Alejandra

nix-build \
--out-link result-alejandra \
https://github.com/kamadorueda/alejandra/tarball/3.0.0
https://github.com/kamadorueda/alejandra/tarball/3.1.0

echo INFO: running Alejandra:
result-alejandra/bin/alejandra -- -q "${@}"
24 changes: 22 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,26 @@ Types of changes
- Security in case of vulnerabilities.
-->

## [3.1.0] - 2023-05-15

### Added

- Thank you messages for the different people
who have helped improving Alejandra.
- Pre-commit hooks with no prerequisites and instructions on how to update the pre-commit hooks.
- A meta.mainProgram to our `flake.nix`.
- Refreshed docs (updated moved links, integrations instructions, maintainer instructions).

### Changed

- The pre-commit option `alejandra` was renamed to `alejandra-nix`.
- Upgraded dependencies to its latest version.
- Blank lines are no longer added after comments in `inherit`.

### Fixed

- A syntax error in one of the pre-commit hooks.

## [3.0.0] - 2022-08-14

### Added
Expand All @@ -31,7 +51,6 @@ Types of changes

- Thank you messages for the different people
who have helped improving Alejandra.
- A pre-commit hook with no prerequisites.

### Changed

Expand Down Expand Up @@ -677,7 +696,8 @@ Types of changes

---

[unreleased]: https://github.com/kamadorueda/alejandra/compare/3.0.0...HEAD
[unreleased]: https://github.com/kamadorueda/alejandra/compare/3.1.0...HEAD
[3.1.0]: https://github.com/kamadorueda/alejandra/compare/3.0.0...3.1.0
[3.0.0]: https://github.com/kamadorueda/alejandra/compare/2.0.0...3.0.0
[2.0.0]: https://github.com/kamadorueda/alejandra/compare/1.5.0...2.0.0
[1.5.0]: https://github.com/kamadorueda/alejandra/compare/1.4.0...1.5.0
Expand Down
18 changes: 9 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -110,11 +110,11 @@ Please visit:

You can download a binary for your platform:

- [aarch64-unknown-linux-musl](https://github.com/kamadorueda/alejandra/releases/download/3.0.0/alejandra-aarch64-unknown-linux-musl)
- [armv6l-unknown-linux-musleabihf](https://github.com/kamadorueda/alejandra/releases/download/3.0.0/alejandra-armv6l-unknown-linux-musleabihf)
- [armv7l-unknown-linux-musleabihf](https://github.com/kamadorueda/alejandra/releases/download/3.0.0/alejandra-armv7l-unknown-linux-musleabihf)
- [i686-unknown-linux-musl](https://github.com/kamadorueda/alejandra/releases/download/3.0.0/alejandra-i686-unknown-linux-musl)
- [x86_64-unknown-linux-musl](https://github.com/kamadorueda/alejandra/releases/download/3.0.0/alejandra-x86_64-unknown-linux-musl)
- [aarch64-unknown-linux-musl](https://github.com/kamadorueda/alejandra/releases/download/3.1.0/alejandra-aarch64-unknown-linux-musl)
- [armv6l-unknown-linux-musleabihf](https://github.com/kamadorueda/alejandra/releases/download/3.1.0/alejandra-armv6l-unknown-linux-musleabihf)
- [armv7l-unknown-linux-musleabihf](https://github.com/kamadorueda/alejandra/releases/download/3.1.0/alejandra-armv7l-unknown-linux-musleabihf)
- [i686-unknown-linux-musl](https://github.com/kamadorueda/alejandra/releases/download/3.1.0/alejandra-i686-unknown-linux-musl)
- [x86_64-unknown-linux-musl](https://github.com/kamadorueda/alejandra/releases/download/3.1.0/alejandra-x86_64-unknown-linux-musl)

Make it executable (`$ chmod +x`)
and run Alejandra with:
Expand All @@ -138,13 +138,13 @@ Please visit: [search.nixos.org/packages?query=alejandra](https://search.nixos.o
- Nix stable:

```bash
$ nix-env -ivf https://github.com/kamadorueda/alejandra/tarball/3.0.0
$ nix-env -ivf https://github.com/kamadorueda/alejandra/tarball/3.1.0
```

- Nix with [Flakes](https://wiki.nixos.org/wiki/Flakes):

```bash
$ nix profile install github:kamadorueda/alejandra/3.0.0
$ nix profile install github:kamadorueda/alejandra/3.1.0
```

Then run Alejandra with:
Expand All @@ -161,7 +161,7 @@ $ alejandra --help
let
alejandra =
(import (builtins.fetchTarball {
url = "https://github.com/kamadorueda/alejandra/tarball/3.0.0";
url = "https://github.com/kamadorueda/alejandra/tarball/3.1.0";
sha256 = "0000000000000000000000000000000000000000000000000000";
}) {})
.outPath;
Expand All @@ -177,7 +177,7 @@ $ alejandra --help
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
alejandra.url = "github:kamadorueda/alejandra/3.0.0";
alejandra.url = "github:kamadorueda/alejandra/3.1.0";
alejandra.inputs.nixpkgs.follows = "nixpkgs";
};
Expand Down
12 changes: 5 additions & 7 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
outputs = inputs: let
commit = inputs.self.shortRev or "dirty";
date = inputs.self.lastModifiedDate or inputs.self.lastModified or "19700101";
version = "3.0.0+${builtins.substring 0 8 date}.${commit}";
version = "3.1.0+${builtins.substring 0 8 date}.${commit}";

nixpkgsForHost = host:
import inputs.nixpkgs {
Expand Down Expand Up @@ -133,12 +133,10 @@
pkgsStatic.alejandra

pkgsCross.aarch64-multiplatform.pkgsStatic.alejandra

pkgsCross.armv7l-hf-multiplatform.pkgsStatic.alejandra

pkgsCross.gnu32.pkgsStatic.alejandra

pkgsCross.raspberryPi.pkgsStatic.alejandra
# Temporarily disabled to speed up release
# pkgsCross.armv7l-hf-multiplatform.pkgsStatic.alejandra
# pkgsCross.gnu32.pkgsStatic.alejandra
# pkgsCross.raspberryPi.pkgsStatic.alejandra
])
// {
"alejandra-vscode-vsix" = mkYarnPackage {
Expand Down
2 changes: 1 addition & 1 deletion integrations/pre-commit/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ with contents:
```yaml
repos:
- repo: https://github.com/kamadorueda/alejandra
rev: 3.0.0
rev: 3.1.0
# Choose either the 'alejandra' or 'alejandra-system' hook
# depending on what pre-requisites you have:
hooks:
Expand Down
2 changes: 1 addition & 1 deletion integrations/vscode/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,5 +66,5 @@
"type": "git",
"url": "https://github.com/kamadorueda/alejandra"
},
"version": "3.0.0"
"version": "3.1.0"
}
Loading

0 comments on commit 2bb91e3

Please sign in to comment.