Skip to content

Commit

Permalink
chore: Release stackablectl-24.11.0 (#334)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
Techassi authored Nov 18, 2024
1 parent 20b99d1 commit 885b347
Show file tree
Hide file tree
Showing 7 changed files with 18 additions and 35 deletions.
29 changes: 5 additions & 24 deletions .github/workflows/pr_pre-commit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,29 +16,10 @@ jobs:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
with:
fetch-depth: 0
- uses: actions/setup-python@82c7e631bb3cdc910f68e0081d67478d79c6982d # v5.1.0
- uses: cachix/install-nix-action@08dcb3a5e62fa31e2da3d490afc4176ef55ecd72 #v30
with:
python-version: '3.12'
- uses: dtolnay/rust-toolchain@master
github_access_token: ${{ secrets.GITHUB_TOKEN }}
- uses: stackabletech/actions/run-pre-commit@9bd13255f286e4b7a654617268abe1b2f37c3e0a # v0.3.0
with:
toolchain: ${{ env.RUST_TOOLCHAIN_VERSION }}
components: rustfmt,clippy
- name: Setup Hadolint
shell: bash
run: |
set -euo pipefail
LOCATION_DIR="$HOME/.local/bin"
LOCATION_BIN="$LOCATION_DIR/hadolint"
SYSTEM=$(uname -s)
ARCH=$(uname -m)
mkdir -p "$LOCATION_DIR"
curl -sL -o "${LOCATION_BIN}" "https://github.com/hadolint/hadolint/releases/download/${{ env.HADOLINT_VERSION }}/hadolint-$SYSTEM-$ARCH"
chmod 700 "${LOCATION_BIN}"
echo "$LOCATION_DIR" >> "$GITHUB_PATH"
- uses: pre-commit/action@2c7b3805fd2a0fd8c1884dcaebf91fc102a13ecd # v3.0.1
with:
extra_args: "--from-ref ${{ github.event.pull_request.base.sha }} --to-ref ${{ github.event.pull_request.head.sha }}"
rust: ${{ env.RUST_TOOLCHAIN_VERSION }}
hadolint: ${{ env.HADOLINT_VERSION }}
12 changes: 6 additions & 6 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,45 +58,45 @@ repos:
files: ^rust/stackablectl/
language: system
entry: cargo xtask gen-man
stages: [commit, merge-commit, manual]
stages: [pre-commit, pre-merge-commit, manual]
pass_filenames: false

- id: gen-comp
name: gen-comp
files: ^rust/stackablectl/
language: system
entry: cargo xtask gen-comp
stages: [commit, merge-commit, manual]
stages: [pre-commit, pre-merge-commit, manual]
pass_filenames: false

- id: gen-openapi
name: gen-openapi
files: ^web/
language: system
entry: cargo xtask gen-openapi
stages: [commit, merge-commit, manual]
stages: [pre-commit, pre-merge-commit, manual]
pass_filenames: false

- id: gen-ctl-readme
name: gen-ctl-readme
files: ^rust/stackablectl/
language: system
entry: cargo xtask gen-ctl-readme
stages: [commit, merge-commit, manual]
stages: [pre-commit, pre-merge-commit, manual]
pass_filenames: false

- id: gen-docs
name: gen-docs
files: ^rust/stackablectl/
language: system
entry: cargo xtask gen-docs
stages: [commit, merge-commit, manual]
stages: [pre-commit, pre-merge-commit, manual]
pass_filenames: false

- id: gen-cargo-nix
name: gen-cargo-nix
files: ^Cargo\.lock|go\.mod$
language: system
entry: make regenerate-nix
stages: [commit, merge-commit, manual]
stages: [pre-commit, pre-merge-commit, manual]
pass_filenames: false
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.nix

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions extra/man/stackablectl.1

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions rust/stackablectl/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ All notable changes to this project will be documented in this file.

## [Unreleased]

## [24.11.0] - 2024-11-18

### Changed

- Bump Rust dependencies to fix critical vulnerability in `quinn-proto`, see
Expand Down
2 changes: 1 addition & 1 deletion rust/stackablectl/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name = "stackablectl"
description = "Command line tool to interact with the Stackable Data Platform"
# See <project-root>/Cargo.toml
version = "24.7.1"
version = "24.11.0"
authors.workspace = true
license.workspace = true
edition.workspace = true
Expand Down

0 comments on commit 885b347

Please sign in to comment.