From a8dfb3eba36efe02f33f75a296a2c5bdaa7c67e3 Mon Sep 17 00:00:00 2001 From: Kinflou Date: Sun, 30 Aug 2026 04:33:18 +0800 Subject: [PATCH] chore: drop package_versions from CLI fixtures and scaffold MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Matches ComlineProject/core#26 — a declared language now takes no options (`rust#1.70.0 = {}`). The CLI still links comline-core 0.1 (which accepts both forms), so this is a no-op today, but it stops the `comline new` scaffold, the test fixture and the docs from generating a `config.idp` that a post-#26 comline-core would reject. --- docs/cli.md | 6 +++++- src/commands/new.rs | 2 +- tests/fixtures/simple_project/config.idp | 2 +- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/docs/cli.md b/docs/cli.md index 9d4988d..a27b609 100644 --- a/docs/cli.md +++ b/docs/cli.md @@ -74,11 +74,15 @@ specification_version = 1 code_generation = { languages = { - rust#1.70.0 = { package_versions=[all] } + rust#1.70.0 = {} } } ``` +The declared languages are a capability list only — a bare +`language#lang_version`. Which of them to generate, where, and for which package +versions is set in `comline.toml` (below). + The directory keeps the name you gave; the `congregation` name is that name reduced to a valid Comline identifier (letters, digits and `_`), so `comline new my-api` produces the directory `my-api/` with `congregation my_api`. diff --git a/src/commands/new.rs b/src/commands/new.rs index 103e9a9..f96159d 100644 --- a/src/commands/new.rs +++ b/src/commands/new.rs @@ -107,7 +107,7 @@ specification_version = 1 code_generation = {{ languages = {{ - rust#1.70.0 = {{ package_versions=[all] }} + rust#1.70.0 = {{}} }} }} " diff --git a/tests/fixtures/simple_project/config.idp b/tests/fixtures/simple_project/config.idp index 8f37bfd..052b109 100644 --- a/tests/fixtures/simple_project/config.idp +++ b/tests/fixtures/simple_project/config.idp @@ -3,6 +3,6 @@ specification_version = 1 code_generation = { languages = { - rust#1.70.0 = { package_versions=[all] } + rust#1.70.0 = {} } }