direktiv icon indicating copy to clipboard operation
direktiv copied to clipboard

Add a direktiv ignore file for mirror functionality

Open alankm opened this issue 2 years ago • 2 comments

I think it's inevitable that the mirror logic should need to be more configurable, so I think we should add some sort of optional configuration file with a fixed name to the root of a repository that the logic will read for instructions. Among other things, this could be used to implement an analogous feature to the git ignore file. So that we can include unrelated YAML files in our repositories.

alankm avatar Jul 19 '22 04:07 alankm

Accidental close

jalfvort avatar Jul 20 '22 00:07 jalfvort

@jensg-st What do you think is the best way to handle errors here? For example, the user has added an ignore file that doesn't parse or with dodgy glob patterns.

Is it better to abort the sync? Or to proceed as if the ignore file didn't exist?

I think we can and should log these issues either way.

alankm avatar Aug 01 '22 02:08 alankm