Skip to content

Commit 885b347

Browse files
authored
chore: Release stackablectl-24.11.0 (#334)
* chore: Migrate pre-commit config * chore: Bump version in Cargo.toml * chore: Update changelog * ci(pre-commit): Install nix and use stackabletech/actions/run-pre-commit
1 parent 20b99d1 commit 885b347

File tree

7 files changed

+18
-35
lines changed

7 files changed

+18
-35
lines changed

.github/workflows/pr_pre-commit.yml

Lines changed: 5 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -16,29 +16,10 @@ jobs:
1616
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
1717
with:
1818
fetch-depth: 0
19-
- uses: actions/setup-python@82c7e631bb3cdc910f68e0081d67478d79c6982d # v5.1.0
19+
- uses: cachix/install-nix-action@08dcb3a5e62fa31e2da3d490afc4176ef55ecd72 #v30
2020
with:
21-
python-version: '3.12'
22-
- uses: dtolnay/rust-toolchain@master
21+
github_access_token: ${{ secrets.GITHUB_TOKEN }}
22+
- uses: stackabletech/actions/run-pre-commit@9bd13255f286e4b7a654617268abe1b2f37c3e0a # v0.3.0
2323
with:
24-
toolchain: ${{ env.RUST_TOOLCHAIN_VERSION }}
25-
components: rustfmt,clippy
26-
- name: Setup Hadolint
27-
shell: bash
28-
run: |
29-
set -euo pipefail
30-
31-
LOCATION_DIR="$HOME/.local/bin"
32-
LOCATION_BIN="$LOCATION_DIR/hadolint"
33-
34-
SYSTEM=$(uname -s)
35-
ARCH=$(uname -m)
36-
37-
mkdir -p "$LOCATION_DIR"
38-
curl -sL -o "${LOCATION_BIN}" "https://github.com/hadolint/hadolint/releases/download/${{ env.HADOLINT_VERSION }}/hadolint-$SYSTEM-$ARCH"
39-
chmod 700 "${LOCATION_BIN}"
40-
41-
echo "$LOCATION_DIR" >> "$GITHUB_PATH"
42-
- uses: pre-commit/action@2c7b3805fd2a0fd8c1884dcaebf91fc102a13ecd # v3.0.1
43-
with:
44-
extra_args: "--from-ref ${{ github.event.pull_request.base.sha }} --to-ref ${{ github.event.pull_request.head.sha }}"
24+
rust: ${{ env.RUST_TOOLCHAIN_VERSION }}
25+
hadolint: ${{ env.HADOLINT_VERSION }}

.pre-commit-config.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -58,45 +58,45 @@ repos:
5858
files: ^rust/stackablectl/
5959
language: system
6060
entry: cargo xtask gen-man
61-
stages: [commit, merge-commit, manual]
61+
stages: [pre-commit, pre-merge-commit, manual]
6262
pass_filenames: false
6363

6464
- id: gen-comp
6565
name: gen-comp
6666
files: ^rust/stackablectl/
6767
language: system
6868
entry: cargo xtask gen-comp
69-
stages: [commit, merge-commit, manual]
69+
stages: [pre-commit, pre-merge-commit, manual]
7070
pass_filenames: false
7171

7272
- id: gen-openapi
7373
name: gen-openapi
7474
files: ^web/
7575
language: system
7676
entry: cargo xtask gen-openapi
77-
stages: [commit, merge-commit, manual]
77+
stages: [pre-commit, pre-merge-commit, manual]
7878
pass_filenames: false
7979

8080
- id: gen-ctl-readme
8181
name: gen-ctl-readme
8282
files: ^rust/stackablectl/
8383
language: system
8484
entry: cargo xtask gen-ctl-readme
85-
stages: [commit, merge-commit, manual]
85+
stages: [pre-commit, pre-merge-commit, manual]
8686
pass_filenames: false
8787

8888
- id: gen-docs
8989
name: gen-docs
9090
files: ^rust/stackablectl/
9191
language: system
9292
entry: cargo xtask gen-docs
93-
stages: [commit, merge-commit, manual]
93+
stages: [pre-commit, pre-merge-commit, manual]
9494
pass_filenames: false
9595

9696
- id: gen-cargo-nix
9797
name: gen-cargo-nix
9898
files: ^Cargo\.lock|go\.mod$
9999
language: system
100100
entry: make regenerate-nix
101-
stages: [commit, merge-commit, manual]
101+
stages: [pre-commit, pre-merge-commit, manual]
102102
pass_filenames: false

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.nix

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

extra/man/stackablectl.1

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

rust/stackablectl/CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ All notable changes to this project will be documented in this file.
44

55
## [Unreleased]
66

7+
## [24.11.0] - 2024-11-18
8+
79
### Changed
810

911
- Bump Rust dependencies to fix critical vulnerability in `quinn-proto`, see

rust/stackablectl/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name = "stackablectl"
33
description = "Command line tool to interact with the Stackable Data Platform"
44
# See <project-root>/Cargo.toml
5-
version = "24.7.1"
5+
version = "24.11.0"
66
authors.workspace = true
77
license.workspace = true
88
edition.workspace = true

0 commit comments

Comments
 (0)