Skip to content

package-linux: drop the two lines #529 left behind (the script does not parse) - #535

Merged
bong-water-water-bong merged 1 commit into
mainfrom
1bit/package-linux-syntax
Oct 23, 2026
Merged

bong-water-water-bong merged 1 commit into
mainfrom
1bit/package-linux-syntax

Conversation

@bong-water-water-bong

Copy link
Copy Markdown
Collaborator

scripts/package-linux.sh does not parse on main: #529 removed the ONNX block but left its done and fi behind,
so bash -n fails on line 54 (syntax error near unexpected token 'done') and the release's package stage stops one
second in, before packing anything:

[09:14:05] package rc-2026-10-23: the engine (into the Lemonade + onebit package)
…/scripts/package-linux.sh: line 54: syntax error near unexpected token `done'
gpu-hold: command exited 2 after 1s

Fix: delete the two orphan lines ( done and fi). Nothing else changes; the ONNX block they belonged to is
gone with #529.

Checked: bash -n passes; every other scripts/*.sh and os/mini/*.sh parses and every tools/*.py compiles
(#529 left nothing else broken); python3 tools/copyright.py --check rc=0. The release candidate's package stage
re-runs on top of this and is the end-to-end proof.

🤖 Generated with Claude Code

…ot parse)

#529 removed the ONNX block from scripts/package-linux.sh but left its `done` and
`fi` behind. `bash -n` fails on line 54 ("syntax error near unexpected token `done'"),
so the whole script never runs and the release's package stage stops one second in,
before packing anything:

  [09:14:05] package rc-2026-10-23: the engine (into the Lemonade + onebit package)
  work/src/scripts/package-linux.sh: line 54: syntax error near unexpected token `done'

Delete the two orphan lines. No other file in scripts/ or os/mini/ is left broken by
#529 (checked every .sh with bash -n and every tools/*.py with py_compile).

Co-Authored-By: Claude Fable 5.1 <[email protected]>
@github-actions

Copy link
Copy Markdown

PR Reviewer Guide 🔍

Here are some key observations to aid the review process:

🎫 Ticket compliance analysis 🔶

529 - Partially compliant

Compliant requirements:

  • The --device onnx flag is removed from serve
  • ONNX-related files and directories are removed
  • Documentation updates are included
  • The Linux package no longer includes ONNX artifacts

Non-compliant requirements:

  • None

Requires further human verification:

  • None
⏱️ Estimated effort to review: 2 🔵🔵⚪⚪⚪
🧪 No relevant tests
🔒 No security concerns identified
⚡ Recommended focus areas for review

Syntax Error in Package Script

The package script contains orphaned done and fi keywords that were left behind after removing the ONNX block. This causes a syntax error when bash -n parses the script, preventing the release package stage from completing.

# the sealed NPU kernel sets (scripts/weekly.sh, WEEKLY_NPU_KERNELS): encrypted artifacts, packed

@bong-water-water-bong
bong-water-water-bong merged commit 1823fb1 into main Oct 23, 2026
8 checks passed
@bong-water-water-bong
bong-water-water-bong deleted the 1bit/package-linux-syntax branch October 23, 2026 12:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant