Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Avoid ending up with double quoted variables in docker.

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

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

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
35/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
docker, python
領域
devops, tooling

調査の方向性

The issue names no repository file, test, or entry point. Reproduce the quoted .env examples with python-dotenv and compare the resulting values with the expected behavior described in the issue. Confirm the intended handling of single- and double-quoted assignments, then verify the result with an appropriate repository test or documented outcome.

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

説明

Related to the buggy way docker handles env-files
see https://github.com/docker/cli/issues/3630#issuecomment-2599705392

When you quote variables in your .env (which IHMO is a best practice):

FOO=BAR
FOO1='BAR1'
FOO2="BAR2"

and then you run docker via docker run --env-file .env
you end up with literal quoted variables inside docker:

FOO=BAR
FOO1='BAR1'
FOO2="BAR2"

This is incorrect, and should be fixed in docker.

and in python via python-dotenv, they become double quoted variables


>>> os.getenv("FOO")
'BAR'

>>> os.getenv("FOO1")
"'BAR1'"

>>> os.getenv("FOO2")
'"BAR2"'

As a work-around for the root-cause, could be avoid ending up with double-quoted variables in python?

主要言語
Python
スター
8.9k
フォーク
581
PR マージ指標
30日以内にマージされた PR はありません

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

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

theskumar/python-dotenv のほかの issue

theskumar/python-dotenv の issue をすべて見る

似ている issue

Python の issue をもっと見る

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

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