Skip to content

what practice should we follow for example modules sources? #87

@kral2

Description

@kral2

Problem definition

When providing HCL code in examples directory to illustrate a module’s features, we have to define the source for the module. Simplifying a bit, there are two main choices: the git repo or the public registry.

Regardless of the choice for OCI Terraform modules, it should be consistent across examples and modules.

proposed Solution

Only module developers should have to git clone the module repo, while users should consume from the public registry.

As a consequence, examples should use the registry as source, so the users can start consuming the module directly, without having to manually git-clone the module first.

This pattern helps driving download stats on the public register and get better exposure.

I can understand that having local path is convenient when testing the modules. But the examples directory’s primary usage is for a user to consume the module with minimum interaction.

We can definitely create another test folder with hcl code referring to local path for testing purpose, used during development.

I would advise to revert the change in PR #84 back to source from public registry.

Originally posted by @kral2 in #84 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions