Suggestion: ignore dotfiles in `conf.d`

オープン
#607 コメント 3 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
45/100
issue の種類
機能追加
明瞭さ
明確に書かれている
活発さ
停滞
技術スタック
docker, go
領域
backend

調査の方向性

Start with cmd/backup/config_provider.go at the linked configuration-reading code and check how entries in conf.d/ are currently handled. Update the behavior to ignore dotfiles, then verify that hidden files no longer prevent startup while ordinary configuration files are still read.

索引モデルが issue の本文から書いたものです。

説明

enhancement

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

I have special files in all my bind-mount directories, including the conf.d/ directory where docker-volume-backup reads backup configuration files. Since these files are unrecognized, DVB won't start up.

Describe the solution you'd like

Ignore all dotfiles, which are traditionally considered hidden files, in conf.d:
https://github.com/offen/docker-volume-backup/blob/87bf4fb3e0911c32058b8a5e6913fefee4ab75e6/cmd/backup/config_provider.go#L100

Describe alternatives you've considered

Looks like the code skips directories, so I may create a special subdirectory to hide my dotfiles.

主要言語
Go
スター
4.1k
フォーク
157
平均マージ
4時間 35分
マージ済み PR(30日)
15

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

offen/docker-volume-backup のほかの issue

offen/docker-volume-backup の issue をすべて見る

似ている issue

Go の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。