SOPS does not support ENV files that contain empty lines
Open
Nobody has claimed this yet.
- Dominant language
- Go
- Stars
- 23.1k
- Forks
- 1.1k
- Avg merge
- 1d 11h
- Merged PRs (30d)
- 9
Description
On Windows 10, trying to encrypt a .env file that contains empty lines results in the following error message:
Error unmarshalling file: invalid dotenv input line:
Output of sops --version:
sops 3.6.1 (latest)
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the failure with SOPS 3.6.1 on Windows 10 using a .env file containing empty lines. Trace the dotenv input handling that produces "invalid dotenv input line:" and verify that encryption succeeds while preserving the file's empty lines.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go
- Domain
- cli, security
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100