Skip to content

tkldev-setup: clone appliance APP from keel-APP on the keel-linux organization - #3

Merged
marcos-mendez merged 2 commits into
masterfrom
feat/keel-app-names
Sep 26, 2026
Merged

marcos-mendez merged 2 commits into
masterfrom
feat/keel-app-names

Conversation

@marcos-mendez

@marcos-mendez marcos-mendez commented Sep 26, 2026 •

Copy link
Copy Markdown
Collaborator

Problem: tkldev-setup clones appliances as /, so with GIT_REMOTE_URL pointing at the organization tkldev-setup core asks for keel-linux/core, which does not exist: appliances are prefixed there (decision 0006), infrastructure is not.

Diagnosis: the only remote-dependent rule was the turnkeylinux one (append -apps for appliances); the organization needs a name mapping, not a different remote.

Fix: app_repo_name APP REMOTE maps APP to keel-APP when REMOTE has a keel-linux path component (https or ssh, any case) and APP is not already prefixed; the local directory stays $FAB_PATH/products/APP so make and bt-layer keep the appliance name. Every other remote behaves as before (turnkeylinux gets -apps, a mirror is used unchanged). Usage text updated.

Tests: 66 bats (3 new: the https organization remote with core becoming keel-core and common staying common; an ssh remote with wordpress and keel-lamp; app_repo_name on turnkeylinux-apps, an IPv6 mirror and an IPv6 organization mirror). tests/coverage.sh under kcov: tkldev-setup 99.48 percent (190 of 191 lines), above the 99 threshold of pull request #2.

Serves BRIEF section 10 and org-plan section 4 (naming rule of decision 0006).

marcos-mendez and others added 2 commits September 26, 2026 09:36
…anization

Appliance repositories of the keel-linux organization carry the keel-
prefix (decision 0006: keel-core, keel-wordpress, ...), while
infrastructure repositories keep their upstream names. When the remote
is the organization (GIT_REMOTE_URL with a keel-linux path component,
https or ssh, any case), app_repo_name maps APP to keel-APP unless it is
already prefixed; the local product directory stays products/APP so make
and bt-layer keep the appliance name. Any other remote is unchanged:
turnkeylinux still gets the -apps organization and a mirror is used as is.

Three bats cases: the https organization remote (core from keel-core, common
and buildtasks unprefixed), an ssh remote with a prefixed and an
unprefixed appliance, and app_repo_name on the turnkeylinux, a mirror and
an IPv6 organization mirror remote.
@marcos-mendez
marcos-mendez merged commit bea8030 into master Sep 26, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant