MatthewJohn / terrareg

Open source Terraform module registry with UI, optional Git integration and deep analysis
https://gitlab.dockstudios.co.uk/pub/terrareg
GNU General Public License v3.0
268 stars 20 forks source link

How does PROVIDER_SOURCES differ from GIT_PROVIDER_CONFIG #36

Closed bmaximuml closed 7 months ago

bmaximuml commented 7 months ago

Looks like GIT_PROVIDER_CONFIG is new in v3, how do these two environment variables differ?

MatthewJohn commented 7 months ago

Hey @bmaximuml

Sorry for the confusion - this is very much a historial configuration:

GIT_PROVIDER_CONFIG are "providers of git" and have nothing to do with Terraform providers. These were used for Git integration for modules (and still are) and are not used at all for Terraform providers.

PROVIDER_SOURCES are purely for Terraform providers. Because providers require much more integration with the SCM tool (Github is only supported), they became a new config entity.

Eventually, I'd like to migrate modules from GIT_PROVIDER_CONFIG to PROVIDER_SOURCES. But, realistically, I could like to:

  1. Add support other providers (gitlab, bitbucket) for Providers in GIT_PROVIDER_CONFIG
  2. Merge git providers into provider sources

Sorry for this confusion

Matt

bmaximuml commented 7 months ago

That makes sense. Thank you!

MatthewJohn commented 6 months ago

Created gitlab issue: https://gitlab.dockstudios.co.uk/pub/terrareg/-/issues/512 gitlab-issue-id:512