Skip to content

Commit 55c9bef

Browse files
committed
fix(offline): allow --offline in source checkouts, fix CHANGELOG truncation
- Simplify use_github logic: use_github = not offline (let scaffold_from_core_pack handle fallback to source-checkout paths) - Remove hard-fail when core_pack/ is absent — scaffold_from_core_pack already falls back to repo-root templates/scripts/commands - Fix truncated 'skill…' → 'skills' in CHANGELOG.md
1 parent 2d3e4a1 commit 55c9bef

File tree

2 files changed

+5
-15
lines changed

2 files changed

+5
-15
lines changed

CHANGELOG.md

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727

2828
- chore: bump version to 0.3.1
2929
- docs: add greenfield Spring Boot pirate-speak preset demo to README (#1878)
30-
- fix(ai-skills): exclude non-speckit copilot agent markdown from skill… (#1867)
30+
- fix(ai-skills): exclude non-speckit copilot agent markdown from skills (#1867)
3131
- feat: add Trae IDE support as a new agent (#1817)
3232
- feat(cli): polite deep merge for settings.json and support JSONC (#1874)
3333
- feat(extensions,presets): add priority-based resolution ordering (#1855)
@@ -282,7 +282,3 @@
282282

283283
- Add pytest and Python linting (ruff) to CI (#1637)
284284
- feat: add pull request template for better contribution guidelines (#1634)
285-
286-
## [0.0.99] - 2026-02-19
287-
288-
- Feat/ai skills (#1632)

src/specify_cli/__init__.py

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1927,18 +1927,12 @@ def init(
19271927

19281928
# Determine whether to use bundled assets or download from GitHub (default).
19291929
# --offline opts in to bundled assets; without it, always use GitHub.
1930+
# When --offline is set, scaffold_from_core_pack() will try the wheel's
1931+
# core_pack/ first, then fall back to source-checkout paths. If neither
1932+
# location has the required assets it returns False and we error out.
19301933
_core = _locate_core_pack()
19311934

1932-
if offline and _core is None:
1933-
console.print(
1934-
"\n[red]Error:[/red] --offline requires a wheel install with bundled assets.\n"
1935-
" Install the specify-cli wheel (it must contain core_pack/).\n"
1936-
" See: docs/installation.md → Enterprise / Air-Gapped Installation\n"
1937-
"Remove --offline to download from GitHub instead."
1938-
)
1939-
raise typer.Exit(1)
1940-
1941-
use_github = not (offline and _core is not None)
1935+
use_github = not offline
19421936

19431937
if use_github and _core is not None:
19441938
console.print(

0 commit comments

Comments
 (0)