Skip to content

Commit 47eb77e

Browse files
chore(release): preparing for release v1.5.0 (#223)
1 parent 5cc03fc commit 47eb77e

File tree

9 files changed

+33
-14
lines changed

9 files changed

+33
-14
lines changed

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "funzzy"
3-
version = "1.4.1"
3+
version = "1.5.0"
44
authors = ["Cristian Oliveira <me@cristianoliveira.com>"]
55
description = "Yet another fancy watcher inspired by entr."
66
license = "MIT"

Makefile

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
.PHONY: help
22
help: ## Lists the available commands. Add a comment with '##' to describe a command.
3-
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
3+
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST)\
4+
| sort\
5+
| awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
46

57
.PHONY: tests
68
tests: ## Execute all the tests
@@ -37,6 +39,10 @@ ci-run-on-push: ## Run checks from .github/workflows/on-push.yml
3739
| yq '.jobs | .[] | .steps | .[] | .run | select(. != null)' \
3840
| xargs -I {} bash -c {}
3941

42+
.PHONY: fmt
43+
fmt: ## Format the code (with cargo fmt) and add the changes to the git stage
44+
@cargo fmt
45+
4046
.PHONY: lint
4147
lint:
4248
@cargo fmt -- --check
@@ -79,17 +85,17 @@ nix-build: ## Build the nix derivation with the nightly toolchain
7985
@nix build .# --verbose -L
8086

8187
.PHONY: nix-bump-default
82-
nix-bump-default: ## Bump the version in nix default package and generate a new revision
88+
nix-bump-default: ## Bump the version in nix default package and generate a new revision
8389
@echo "Bumping the version in nix default"
8490
scripts/bump-nix-default
8591

8692
.PHONY: nix-bump-nightly
87-
nix-bump-nightly: ## Bump the version in nix nightly package and generate a new revision
93+
nix-bump-nightly: ## Bump the version in nix nightly package and generate a new revision
8894
@echo "Bumping the version in nix packages"
8995
scripts/bump-nix-nightly
9096

9197
.PHONY: nix-bump-local
92-
nix-bump-local: ## Bump the version in nix local package and generate a new revision
98+
nix-bump-local: ## Bump the version in nix local package and generate a new revision
9399
@echo "Bumping the version in nix packages"
94100
scripts/bump-nix-local
95101

nix/package-local.nix

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
rustPlatform.buildRustPackage {
44
pname = "funzzy";
5-
version = "019ffb3";
5+
version = "c9a662e";
66

77
## build with local source
88
src = ../.;
@@ -18,7 +18,7 @@ rustPlatform.buildRustPackage {
1818
# allowBuiltinFetchGit = true;
1919
# };
2020

21-
cargoHash = "sha256-+ECisCHz7N/HNS8xawZs7uD9hTDrzMtFZVACFI+iSN8=";
21+
cargoHash = "sha256-R32136FXsqTRHKoaxHe7X7UWvMnlG6Z79TcOZpFVyNU=";
2222

2323
buildInputs = lib.optionals stdenv.isDarwin [
2424
darwin.apple_sdk.frameworks.CoreServices

nix/package-nightly.nix

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,16 @@
22

33
rustPlatform.buildRustPackage rec {
44
pname = "funzzy";
5-
version = "master";
5+
version = "5cc03fc";
66

77
src = fetchFromGitHub {
88
owner = "cristianoliveira";
99
repo = "funzzy";
1010
rev = "${version}";
11-
hash = "sha256-BNYlXWyyhSBH5Q0zgmo8G6Wk9LbXdvI1KGYpAP3Oz3o=";
11+
hash = "sha256-SuHdKvxhV4Dt+rsyNBCPqMnLfs8wl6pJc8uWXv5b1es=";
1212
};
1313

14-
cargoHash = "sha256-Uo8YB5ZvtcRJmZFotAI1IIt49yC5gDa8w3XA0ALIdFs=";
14+
cargoHash = "sha256-qmw62ir/+3o8czTw0Oc9KOTmRSO6WBKJ9MlT7Fnb/pM=";
1515

1616
buildInputs = lib.optionals stdenv.isDarwin [
1717
darwin.apple_sdk.frameworks.CoreServices

scripts/bump-nix-nightly

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/usr/bin/env bash
22

3-
VERSION="master"
3+
VERSION="$(git rev-parse --short origin/master)"
44
NIX_FILE="nix/package-nightly.nix"
55

66
echo "Bumping version to $VERSION"
@@ -26,3 +26,6 @@ echo "Building nix derivation"
2626
nix build .#nightly
2727

2828
rm -f build.log
29+
30+
git add "$NIX_FILE"
31+
git commit -m "chore(nix): bump nightly to origin/master ($VERSION)"

shell.nix

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ pkgs.mkShell {
1616

1717
yq-go # jq for yaml
1818

19+
fzf # Used in scripts
20+
1921
# For development install latest version of funzzy
2022
# copkgs.funzzyNightly
2123

@@ -28,6 +30,9 @@ pkgs.mkShell {
2830
];
2931

3032
shellHook = ''
33+
echo "$@"
34+
3135
cargo update
36+
cargo build
3237
'';
3338
}

tests/read_stdin_error.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ const BINARY_NAME: &str = "funzzy";
1010
fn it_fails_when_no_stdin_is_given() -> Result<(), Box<dyn std::error::Error>> {
1111
let mut cmd = Command::cargo_bin(BINARY_NAME)?;
1212

13-
cmd.arg("echo 'foo'")
13+
cmd.env("FUNZZY_COLORED", "false")
14+
.arg("echo 'foo'")
1415
.write_stdin("")
1516
.assert()
1617
.failure()
@@ -36,7 +37,8 @@ fn it_validates_when_given_list_of_paths_is_invalid() -> Result<(), Box<dyn std:
3637
.stdout(Stdio::piped())
3738
.output()?;
3839

39-
cmd.arg("echo 'foo'")
40+
cmd.env("FUNZZY_COLORED", "false")
41+
.arg("echo 'foo'")
4042
.write_stdin(lsla.stdout)
4143
.assert()
4244
.failure()

tests/watching_configured_errors.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ fn it_fails_when_folder_is_read_only() -> Result<(), Box<dyn std::error::Error>>
1717
change_dir_if_needed();
1818

1919
let mut cmd = Command::cargo_bin(BINARY_NAME)?;
20+
cmd.env("FUNZZY_COLORED", "false");
2021
cmd.assert().failure().stdout(
2122
vec![
2223
"Error: Failed to read default config file",
@@ -36,6 +37,7 @@ fn it_fails_using_an_config_with_missing_properties() -> Result<(), Box<dyn std:
3637
change_dir_if_needed();
3738

3839
let mut cmd = Command::cargo_bin(BINARY_NAME)?;
40+
cmd.env("FUNZZY_COLORED", "false");
3941
cmd.arg("--config")
4042
.arg("./missing-required-property.yml")
4143
.assert()
@@ -62,6 +64,7 @@ fn it_fails_using_an_config_with_non_list() -> Result<(), Box<dyn std::error::Er
6264
change_dir_if_needed();
6365

6466
let mut cmd = Command::cargo_bin(BINARY_NAME)?;
67+
cmd.env("FUNZZY_COLORED", "false");
6568
cmd.arg("--config")
6669
.arg("./non-list.yaml")
6770
.assert()

0 commit comments

Comments
 (0)