Skip to content

RTECO-2003: add the Choco project type - #1616

Open
bhanurp wants to merge 2 commits into
masterfrom
RTECO-2003-choco-flexpack
Open

RTECO-2003: add the Choco project type#1616
bhanurp wants to merge 2 commits into
masterfrom
RTECO-2003-choco-flexpack

Conversation

@bhanurp

@bhanurp bhanurp commented Sep 10, 2026

Copy link
Copy Markdown
Contributor

Summary

Adds Choco to ProjectType and ProjectTypes, for RTECO-2003 (jf choco + jf setup choco).

jf setup choco needs it: the whole setup family is keyed by project.ProjectTypepackageManagerToRepositoryPackageType, packageManagerConfigs and IsSupportedPackageManager all look choco up by enum value, and setupCmd resolves the CLI argument through project.FromString("choco"). Without the enum entry there is no way to name choco to jf setup.

jf choco itself does not need this — it reports telemetry through ExecWithPackageManager, which takes a plain string, as nix, apt and huggingface already do.

Note for reviewers

Appended at the end of both the const block and ProjectTypes, in matching positions. The enum is index-based (ProjectTypes[projectType]), so inserting mid-list would silently renumber every later type.

Test plan

  • go build ./...
  • go test ./common/project/...

🤖 Generated with Claude Code

`jf setup choco` needs this: the whole setup family is keyed by
project.ProjectType, so packageManagerToRepositoryPackageType,
packageManagerConfigs and IsSupportedPackageManager all look choco up by enum
value, and setupCmd resolves the CLI argument through project.FromString.

Appended at the end of both the const block and ProjectTypes. The enum is
index-based (ProjectTypes[projectType]), so inserting mid-list would silently
renumber every later type.

`jf choco` itself does not need this; it reports telemetry through
ExecWithPackageManager, which takes a plain string, as nix, apt and huggingface
already do.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@github-actions

Copy link
Copy Markdown
Contributor

👍 Frogbot scanned this pull request and did not find any new security issues.


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

new feature Automatically generated release notes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant