Uh oh!
There was an error while loading. Please reload this page.
[CDTOOL-1707] add Python starter kit to the static config - #1877
Merged
Conversation
The starter kits embedded into the CLI binary are injected at build time by ./scripts/config.sh, which holds a hardcoded list of starter kit repositories. Python language support (#1811) never added the Python starter kit to that list, so `compute init --language python` reported that no starter kits were configured and fell back to asking the user for a template git URL. Add compute-starter-kit-python-default to the list, and a test that asserts every language offered at the `compute init` prompt has at least one starter kit in the static config, so the same drift is caught for the next language we add. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
kailan
requested review from
anthony-gomez-fastly
and removed request for
philippschulteAugust 7, 2026 14:27
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for freeto join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Change summary
Fixes CDTOOL-1707.
fastly compute init --language pythonreports that no starter kits exist:Interactively it prints "No default starter kits are currently configured for this language" and falls back to prompting for a template git URL.
The starter kits embedded into the CLI binary are injected into
pkg/config/config.tomlat build time by./scripts/config.sh, which holds its own hardcoded list of starter kit repositories. Python language support (#1811) added[language.python]to.fastly/config.tomland wired Python intoNewLanguages(), but never addedcompute-starter-kit-python-defaultto that list — sokits.Pythonis empty andPromptForStarterKittakes its "no kits" branch.[language.python]is present, socompute buildis unaffected; the gap is only starter kits.This adds the repository to the list, plus a test asserting that every language offered at the
compute initprompt has at least one starter kit in the static config, so the same drift is caught for the next language we add. CI generates the config withmake configbefore running tests, so the test runs against the real generated config.Depends on fastly/compute-starter-kit-python-default#6, which gives the kit a human-readable
namein itsfastly.toml.config.shcopies that field verbatim into the config, so until it merges the prompt renders[1] fastly-compute-python-apprather than[1] Default starter for Python. Nothing needs re-landing here once it merges — the config is regenerated on each build — but this PR should not be released before that one.All Submissions:
Changes to Core Features:
Verified end-to-end after
make config:User Impact
Python users can init a project from the default starter kit instead of having to supply
--fromor paste a git URL.Are there any considerations that need to be addressed for release?
No breaking changes and no
config_versionbump needed —NeedsUpdatingalready rewrites local configs when the CLI version changes, so existing users pick the new kit up on their next upgrade.🤖 Generated with Claude Code