Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for local repository #16

Open
iliapolo opened this issue Apr 20, 2019 · 0 comments
Open

Add support for local repository #16

iliapolo opened this issue Apr 20, 2019 · 0 comments

Comments

@iliapolo
Copy link
Owner

Currently the repository files are stored under ~/.dictconfig/. This is hardcoded and not configurable.

It is ok for interactive usage, but very bad for automation. Thinks of the following scenario:

  1. CI cleans workspace and checks out repository
  2. CI runs dictfile to modify a file in that repository
  3. CI cleans workspace and checks out repository
  4. CI runs dictfile to modify a file in that repository --> this will fail because dictfile will complain that its last committed version is different than the current one, so it will not agree to make changes. The failure is actually good because this feature helps preventing manual modifications to files.

We do however need to support running with a local repository, this way when the CI cleans the workspace, it will also remove the the .dictconfig directory and all will be good.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant