Repository navigation
sysext: additional repositories - #2790
Conversation
| type packageConfDef struct { | ||
| Standalone bool `yaml:"standalone,omitempty"` | ||
| Standalone bool `yaml:"standalone,omitempty"` | ||
| Repositories []rpmmd.Repository `yaml:"repositories,omitempty"` |
There was a problem hiding this comment.
Same format as on-disk files so it only needs to be documented once and we only provide one structure instead of two slightly different ones.
| // repository is the presentation of a on-disk repository json file | ||
| type repository struct { | ||
| // Repository represents a repository entry in an on-disk repository file. | ||
| type Repository struct { |
There was a problem hiding this comment.
Same here, why make this public rather than using RepoConfig?
brlane-rht
left a comment
There was a problem hiding this comment.
Looks pretty good, but can you split out the rpmmd change into a separate commit? It's a nice improvement that can stand on its own.
Sure! I'll do that in the morning. |
b6d0344 to
f7772b7
Compare
Done; PR is now split into two commits, one that makes the |
croissanne
left a comment
There was a problem hiding this comment.
lgtm, do you think we should sunset rpmmd.RepoConfig entirely?
Maybe, a good topic for office hours 🙂, depending on the work @achilleas-k will be doing for the flattening as well. |
Expose the `Repository` object, which is the on-disk representation of repositories, publicly. This way other places (the YAML) can re-use the on-disk format and parsing behavior so we have a single approach to defining repositories; no matter where exactly they come from. Signed-off-by: Simon de Vlieger <[email protected]>
Allow defining additional repositories that are only applied to the additional transaction that a `sysext` performs for package installations. This allows for building (for example) 3rd party repository sysexts such as `tailscale` or others. Theoretically this isn't *perfect* but it should work practically in all cases I can think of. `sysexts` always (even if `standalone`) use the "global" repositories. We might want to split out standalone into `_packages` and `_repositories` in the future but as of now there's no real reason to do so yet. Signed-off-by: Simon de Vlieger <[email protected]>
f7772b7 to
e04724e
Compare
Allow defining additional repositories that are only applied to the additional transaction that a
sysextperforms for package installations.This allows for building (for example) 3rd party repository sysexts such as
tailscaleor others. Theoretically this isn't perfect but it should work practically in all cases I can think of.sysextsalways (even ifstandalone) use the "global" repositories. We might want to split out standalone into_packagesand_repositoriesin the future but as of now there's no real reason to do so yet.Perhaps slightly controversial but this also sets precedent and does some wiring in
rpmmd.goif we want to, in the future, define repositories in the definitions in general.We don't have any built-in definitions that create
sysexts(or use any extras), external distributions (such asTeamSBC LinuxandPocketBlue) do use these.