Skip to content

Add a repository command#24

Open
ebassi wants to merge 4 commits into
mainfrom
feat/repo-cmd
Open

Add a repository command#24
ebassi wants to merge 4 commits into
mainfrom
feat/repo-cmd

Conversation

@ebassi

@ebassi ebassi commented Jul 20, 2026

Copy link
Copy Markdown
Member

Adding/removing repositories at the moment requires:

  • creating/removing a file under kas/include/repo
  • modifying the image-base kas file to include/uninclude the repo fle

This makes it harder to regenerate the image-base file.

The repository command takes over that job, and manages the include files and their reference in the image-base file.

Example use:

$ moonforge repository add meta-something-private \
> -c 4954d9a3a52582472567a73d40d02ef2abbbe5a0 \
> -u https://github.com/myorg/meta-something-private \
> -t scarthgap

ebassi added 3 commits July 20, 2026 14:57
When using 'moonforge build', we can set a git ignore file ourselves,
instead of pre-seeding it in the project's top level directory.
The project's metadata should contain the repositories we reference
inside the kas file, so we can recreate the top level image file after
adding/removing repositories.
We can add and remove repositories from the main kas image file.

This is the first step towards being able to manage include fragments
without modifying the generated image file.
@ebassi
ebassi requested a review from tchx84 July 20, 2026 13:07
Older Python versions get confused, and flake complains.
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