Replicate changes from one repository to another

0

I have 3 repositories that use the same component. I would like to when you make changes to this component, you can replicate to the other.

Is it possible?

    
asked by anonymous 29.08.2018 / 22:13

1 answer

0

Using componentization is a good practice for distributing software / common code between applications, but it is not ideal to do this in the repository itself.

A component, which is a set of reusable code, should be treated as an application itself. Therefore, it will have its own repository and a compilation process that should deliver a binary artifact. So it's important that this artifact does not constantly break your API, and when it's done, it's as stable as possible. Dropping versions that indicate that the API will be changed, etc ...

So if at the end of this process we have a binary, it should not be stored in a code repository, rather it is a package repository. There are a number of things out there, from the specific ones that store packages of a language, to the so-called universal package repositories, which are in evidence at the moment.

For example:

  • Inget Proget, which stores C # / .NET (NuGet), JavaScript / NodeJS (npm), Ruby (Gems), or Java (Maven) packages: link
  • Microsoft VSTS, which has package management like the previous one, in addition to all pipeline automation, ie you can have the code in a Git repository, build it, and store the package, all in the same application: link
01.09.2018 / 16:24