mirror of
https://github.com/RGBCube/alejandra
synced 2025-07-29 19:47:45 +00:00
feat: release 3.1.0
This commit is contained in:
parent
515cc37052
commit
2bb91e309c
12 changed files with 987 additions and 159 deletions
|
@ -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
CHANGELOG.md
24
CHANGELOG.md
|
@ -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
|
||||
|
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
|
18
README.md
18
README.md
|
@ -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:
|
||||
|
@ -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:
|
||||
|
@ -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;
|
||||
|
@ -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";
|
||||
};
|
||||
|
||||
|
|
12
flake.nix
12
flake.nix
|
@ -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 {
|
||||
|
@ -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 {
|
||||
|
|
|
@ -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:
|
||||
|
|
|
@ -66,5 +66,5 @@
|
|||
"type": "git",
|
||||
"url": "https://github.com/kamadorueda/alejandra"
|
||||
},
|
||||
"version": "3.0.0"
|
||||
"version": "3.1.0"
|
||||
}
|
||||
|
|
File diff suppressed because it is too large
Load diff
|
@ -29,7 +29,7 @@ edition = "2021"
|
|||
license = "Unlicense"
|
||||
name = "alejandra"
|
||||
repository = "https://github.com/kamadorueda/alejandra"
|
||||
version = "3.0.0"
|
||||
version = "3.1.0"
|
||||
|
||||
[dev-dependencies]
|
||||
pretty_assertions = "1.3.0"
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
/// The version of Alejandra.
|
||||
pub const VERSION: &str = "3.0.0";
|
||||
pub const VERSION: &str = "3.1.0";
|
||||
|
|
|
@ -4,22 +4,22 @@ path = "src/main.rs"
|
|||
|
||||
[dependencies]
|
||||
alejandra = { path = "../alejandra" }
|
||||
clap = { version = "*", default_features = false, features = [
|
||||
clap = { version = "*", default-features = false, features = [
|
||||
"color",
|
||||
"derive",
|
||||
"std",
|
||||
"strsim"
|
||||
"strsim",
|
||||
] }
|
||||
futures = { version = "*", default_features = false, features = [
|
||||
futures = { version = "*", default-features = false, features = [
|
||||
"executor",
|
||||
"thread-pool"
|
||||
"thread-pool",
|
||||
] }
|
||||
num_cpus = { version = "*", default_features = false, features = [] }
|
||||
num_cpus = { version = "*", default-features = false, features = [] }
|
||||
rand = { version = "*", default-features = false, features = [
|
||||
"alloc",
|
||||
"getrandom"
|
||||
"getrandom",
|
||||
] }
|
||||
walkdir = { version = "*", default_features = false, features = [] }
|
||||
walkdir = { version = "*", default-features = false, features = [] }
|
||||
|
||||
[package]
|
||||
authors = ["Kevin Amado <kamadorueda@gmail.com>"]
|
||||
|
@ -28,4 +28,4 @@ edition = "2021"
|
|||
license = "Unlicense"
|
||||
name = "alejandra_cli"
|
||||
repository = "https://github.com/kamadorueda/alejandra"
|
||||
version = "3.0.0"
|
||||
version = "3.1.0"
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
use rand::distributions::weighted::WeightedIndex;
|
||||
use rand::distributions::Distribution;
|
||||
use rand::distributions::weighted::WeightedIndex;
|
||||
use rand::rngs::OsRng;
|
||||
|
||||
pub(crate) fn random_ad() -> String {
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
use std::io::Read;
|
||||
|
||||
use clap::value_parser;
|
||||
use clap::ArgAction;
|
||||
use clap::Parser;
|
||||
use clap::value_parser;
|
||||
use futures::future::RemoteHandle;
|
||||
use futures::stream::FuturesUnordered;
|
||||
use futures::task::SpawnExt;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue