Skip to content

Decouple from cwd #1067

Open
Open
@avoidik

Description

@avoidik

Is your feature request related to a problem? Please describe.

I would like to keep all gitlab-ci-local related data outside of my git projects, completely separate. Which seems to be an impossible goal due to the common pattern to bind almost all path operations to the cwd (${cwd}/${stateDir}/..., ${cwd}/${file}, git, etc.).

Describe the solution you'd like

I would like to have an option to be able to decouple from the cwd. The idea here is that GCL should take only a source code from the particular directory I could have specified, while everything else, like dotfiles, variables.yaml, stateDir, even gitlab-ci-local.yml itself, sits in another directory, outside of a git project. Something like --git-dir CLI option, maybe.

Describe alternatives you've considered

I was trying to combine different CLI options (--home, --state-dir, --cwd, --file) in attempt to achieve what I want, but I was unable to do so.

Additional context

N/A

Metadata

Metadata

Assignees

No one assigned

    Labels

    niceDown prioritized

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions