KohlsTechnology/git2consul-go

Hidden files (e.g. .gitlab-ci.yml) cause failures

Closed this issue · 0 comments

Is your feature request related to a problem? Please describe.
My Git project contains a hidden file that happens to be a YAML file. In my case, this is .gitlab-ci.yml which defines the Gitlab pipeline for executing git2consul in my environment. This file is picked up by git2consul and fails similar to the behavior outlined in this bug (due to a list in the yaml):
#37

Describe the solution you'd like
I would like to be able to ignore certain files (e.g. by list or pattern, or by default ignore all hidden files.

Describe alternatives you've considered
I'm currently stumped. There seems to be no way to specify which .yml files in a repo get processed, and there's no way to script up a solution that removes the file between pulling the repo and loading the values. I would greatly appreciate any ideas for how to work around this file in my repo!

What version of git2consul-go are you using?

$ git2consul -version
git2consul, version v0.1.1 (branch: HEAD, revision: abdf3a1d746539f08ce5122f9d7db43ae4e79afd)
build date: 20200106-19:50:06
go version: go1.13.5