Skip to content

Commit c0b5d43

Browse files
NimaShafieclaude
andcommitted
fix: shellcheck lint + Go dep updates; release v1.3.1
- Fix SC2034 unused vars: NO_BROWSER (launch.sh), REPO_ROOT (uninstall.sh), tool_id (check-installed-tools.sh) - Fix SC2183 printf format mismatch in pkg.sh (split "$sub/$id" into two args) - Fix SC1090 non-constant source in run-tests.sh and check-installed-tools.sh - Fix SC2076 quoted regex RHS in validate-manifests.sh - Bump go-chi/chi v5.2.2 → v5.2.5, golang.org/x/text v0.22.0 → v0.36.0 - Bump pyproject.toml build deps: setuptools>=75, wheel>=0.45 - Rebuild server binaries with updated Go deps - Bump version 1.3.0 → 1.3.1 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 033f9ed commit c0b5d43

12 files changed

Lines changed: 17 additions & 17 deletions

File tree

packages/python/pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
[build-system]
2-
requires = ["setuptools>=68", "wheel"]
2+
requires = ["setuptools>=75", "wheel>=0.45"]
33
build-backend = "setuptools.build_meta"
44

55
[project]
66
name = "airgap-devkit"
7-
version = "1.3.0"
7+
version = "1.3.1"
88
description = "Air-gapped developer toolkit — install and manage developer tools in network-restricted environments"
99
readme = "README.md"
1010
license = "AGPL-3.0-only"
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "1.3.0"
1+
__version__ = "1.3.1"

scripts/launch.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ _sep() { printf '%s\n' "========================================================
2828
# ---------------------------------------------------------------------------
2929
FORCE_CLI=false
3030
FORCE_REBUILD=false
31-
NO_BROWSER=false
3231
SERVER_ARGS=()
3332
UI_PORT=8080
3433
UI_HOST="127.0.0.1"
@@ -39,7 +38,7 @@ while [[ $# -gt 0 ]]; do
3938
--rebuild) FORCE_REBUILD=true; shift ;;
4039
--port) UI_PORT="$2"; SERVER_ARGS+=("$1" "$2"); shift 2 ;;
4140
--host) UI_HOST="$2"; SERVER_ARGS+=("$1" "$2"); shift 2 ;;
42-
--no-browser) NO_BROWSER=true; SERVER_ARGS+=("$1"); shift ;;
41+
--no-browser) SERVER_ARGS+=("$1"); shift ;;
4342
*) SERVER_ARGS+=("$1"); shift ;;
4443
esac
4544
done

scripts/pkg.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -406,7 +406,7 @@ PYEOF
406406
local sub="${cat_dir#tools/}"
407407
printf '# Locate the prebuilt archive\n' >> "${tool_dir}/setup.sh"
408408
printf 'PREBUILT_DIR="${PREBUILT_DIR:-${REPO_ROOT}/prebuilt}"\n' >> "${tool_dir}/setup.sh"
409-
printf 'PARTS_DIR="${PREBUILT_DIR}/%s/%s/${VERSION}"\n' "$sub/$id" >> "${tool_dir}/setup.sh"
409+
printf 'PARTS_DIR="${PREBUILT_DIR}/%s/%s/${VERSION}"\n' "$sub" "$id" >> "${tool_dir}/setup.sh"
410410
printf 'ARCHIVE="$(devkit_find_file "${PARTS_DIR}")"\n\n' >> "${tool_dir}/setup.sh"
411411
printf '# TODO: choose the right install method:\n' >> "${tool_dir}/setup.sh"
412412
printf '# devkit_extract "${ARCHIVE}" "${PREFIX}" # tar/zip archive\n' >> "${tool_dir}/setup.sh"

scripts/uninstall.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
set -euo pipefail
2020

2121
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
22-
REPO_ROOT="$(cd "$SCRIPT_DIR/.." && pwd)"
2322

2423
# ---------------------------------------------------------------------------
2524
# Parse arguments

server/go.mod

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
module github.com/nimzshafie/airgap-devkit/server
22

3-
go 1.24
3+
go 1.25.0
44

55
require (
6-
github.com/go-chi/chi/v5 v5.2.2
7-
golang.org/x/text v0.22.0
6+
github.com/go-chi/chi/v5 v5.2.5
7+
golang.org/x/text v0.36.0
88
)

server/go.sum

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
github.com/go-chi/chi/v5 v5.2.2 h1:CMwsvRVTbXVytCk1Wd72Zy1LAsAh9GxMmSNWLHCG618=
2-
github.com/go-chi/chi/v5 v5.2.2/go.mod h1:L2yAIGWB3H+phAw1NxKwWM+7eUH/lU8pOMm5hHcoops=
3-
golang.org/x/text v0.22.0 h1:bofq7m3/HAFvbF51jz3Q9wLg3jkvSPuiZu/pD1XwgtM=
4-
golang.org/x/text v0.22.0/go.mod h1:YRoo4H8PVmsu+E3Ou7cqLVH8oXWIHVoX0jqUWALQhfY=
1+
github.com/go-chi/chi/v5 v5.2.5 h1:Eg4myHZBjyvJmAFjFvWgrqDTXFyOzjj7YIm3L3mu6Ug=
2+
github.com/go-chi/chi/v5 v5.2.5/go.mod h1:X7Gx4mteadT3eDOMTsXzmI4/rwUpOwBHLpAfupzFJP0=
3+
golang.org/x/text v0.36.0 h1:JfKh3XmcRPqZPKevfXVpI1wXPTqbkE5f7JA92a55Yxg=
4+
golang.org/x/text v0.36.0/go.mod h1:NIdBknypM8iqVmPiuco0Dh6P5Jcdk8lJL0CUebqK164=

server/internal/api/version.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ package api
66
// MINOR — increments with each feature milestone
77
// PATCH — increments for bug-fix-only drops
88
// PRERELEASE — alpha.N → beta.N → rc.N (dropped on stable release)
9-
const AppVersion = "1.3.0"
9+
const AppVersion = "1.3.1"

tests/check-installed-tools.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ PREFIX="$(_detect_prefix)"
5050

5151
# Source the env file if present so installed tool PATHs are available
5252
ENV_FILE="$PREFIX/env.sh"
53+
# shellcheck source=/dev/null
5354
[[ -f "$ENV_FILE" ]] && source "$ENV_FILE" 2>/dev/null || true
5455

5556
_py() {
@@ -99,7 +100,6 @@ if [[ ! -d "$TOOLS_DIR" ]]; then
99100
fi
100101

101102
while IFS= read -r -d '' devkit_json; do
102-
tool_id="$(_json_get "$devkit_json" id)"
103103
tool_name="$(_json_get "$devkit_json" name)"
104104
check_cmd="$(_json_get "$devkit_json" check_cmd)"
105105
platform="$(_json_get "$devkit_json" platform)"

0 commit comments

Comments
 (0)