Skip to content

Commit 0993310

Browse files
authored
fix: small Nix mistakes (#8)
1 parent 6f4c092 commit 0993310

6 files changed

Lines changed: 10 additions & 4 deletions

File tree

.githooks/pre-commit/2-format.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ if ! command -v "nix" &>/dev/null; then
1515
fi
1616

1717
FILES=()
18-
readarray -t FILES < <(echo "$STAGED_FILES")
18+
readarray -t FILES < <(echo -n "$STAGED_FILES")
1919

2020
# shellcheck disable=SC2128
2121
if [ "${#FILES[@]}" = "0" ]; then

.github/workflows/format.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ jobs:
1414
runs-on: ubuntu-latest
1515
steps:
1616
- uses: actions/checkout@v4
17+
with:
18+
fetch-depth: 1
1719
- uses: ./.github/actions/setup-nix
1820
with:
1921
cachix_cache_name: "${{ secrets.CACHIX_CACHE_NAME }}"

.github/workflows/normal.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ jobs:
1717
language: [generic, python, go, rust]
1818
steps:
1919
- uses: actions/checkout@v4
20+
with:
21+
fetch-depth: 1
2022

2123
- uses: ./.github/actions/setup-nix
2224
with:
@@ -30,6 +32,8 @@ jobs:
3032
runs-on: ubuntu-latest
3133
steps:
3234
- uses: actions/checkout@v4
35+
with:
36+
fetch-depth: 1
3337
- uses: ./.github/actions/setup-nix
3438
with:
3539
cachix_cache_name: "${{ secrets.CACHIX_CACHE_NAME }}"

src/generic/.githooks/pre-commit/2-format.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ if ! command -v "nix" &>/dev/null; then
1515
fi
1616

1717
FILES=()
18-
readarray -t FILES < <(echo "$STAGED_FILES")
18+
readarray -t FILES < <(echo -n "$STAGED_FILES")
1919

2020
# shellcheck disable=SC2128
2121
if [ "${#FILES[@]}" = "0" ]; then

src/generic/tools/nix/packages/bootstrap/default.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ pkgs.buildEnv {
1313
paths = [
1414
(lib.hiPrio pkgs.git)
1515
pkgs.git-lfs
16-
pkgs.just
16+
pkgs.bash
1717

1818
pkgs.coreutils
1919
pkgs.findutils

tools/nix/packages/bootstrap/default.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ pkgs.buildEnv {
1212
paths = [
1313
(lib.hiPrio pkgs.git)
1414
pkgs.git-lfs
15-
pkgs.just
15+
pkgs.bash
1616

1717
pkgs.coreutils
1818
pkgs.findutils

0 commit comments

Comments
 (0)