8000 support to fetch only a selected directory (support monorepo) · Issue #10 · coretech/terrafile · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
This repository was archived by the owner on Mar 19, 2024. It is now read-only.
This repository was archived by the owner on Mar 19, 2024. It is now read-only.
support to fetch only a selected directory (support monorepo) #10
Open
@Cajga

Description

@Cajga

Currently the config only allows to fetch a full git repository. We are using a huge monorepo in which we store all of our modules together (we have a very complex CI pipleline and having them in one repo makes it easier).
It would be nice if terrafile would support to fetch only a subdirectory from the repo.

Implementation idea:

onemodule:
  source: "git@github.com:awsomecompany/hugemonorepo"
  version: "v2.66.0"
  path: "modules/onemodule"

As git support is pretty weak in this area we could fetch the whole repo and then move it around to keep only the selected directory at the end.
A possible implementation can be found here: https://github.com/devopsmakers/xterrafile/blob/master/cmd/install.go#L91

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labe 3452 ls

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0