containerbuildsystem / cachito

Caching service for source code and external dependencies
GNU General Public License v3.0
56 stars 45 forks source link

Documentation : Packages and Package Manager Questions #353

Open rnc opened 3 years ago

rnc commented 3 years ago

https://github.com/release-engineering/cachito#feature-support lists package managers of gomod | npm | pip but https://github.com/release-engineering/cachito#git-submodule implies git-submodule is also a package manager. Is the table correct?

Secondly https://github.com/release-engineering/cachito#git-submodule mentions packages but does not fully describe what they are, what the format is and how they should be used. Can the documentation be improved here?

rnc commented 3 years ago

@lcarva Could you take a look at this please?

lcarva commented 3 years ago

Filed the internal tracker as CLOUDBLD-3792

lcarva commented 3 years ago

git-submodule is a package manager from Cachito's perspective.

The way to use it is by listing git-submodule in the pkg_managers list of a Cachito request. You may use git-submodule with other package managers. For now, the only restriction is using git-submodule together with gomod.

When the git-submodule package manager is used, Cachito will also fetch the contents of the git repos referenced as submodules. However, if a submodule in turn has submodules, those will not be fetched.

Does that answer your immediate questions until we can get this information incorporated into the docs?

rnc commented 3 years ago

@lcarva Yes thanks, it was originally for the work on https://github.com/cekit/cekit/issues/663