Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: danish1254/python-dotenv
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: main
Choose a base ref
...
head repository: theskumar/python-dotenv
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: main
Choose a head ref
Checking mergeability… Don’t worry, you can still create the pull request.
  • 10 commits
  • 13 files changed
  • 7 contributors

Commits on Feb 28, 2026

  1. Remove the use of sh in tests (theskumar#612)

    This commit has the following benefits:
    
    - Remove `sh` as a development dependency.
    - Increase test coverage on Windows.
    - Improve the robustness of some tests against leftover `.env` files in
      the repository.
        - This is not perfect yet: If you have a `.env` file in your
          repository, it still disrupts some tests (for `find_dotenv`).
    - Improve the readability of error messages for some tests.
    bbc2 authored Feb 28, 2026
    Configuration menu
    Copy the full SHA
    43340da View commit details
    Browse the repository at this point in the history

Commits on Mar 1, 2026

  1. Merge commit from fork

    Changes for users:
    
    - (BREAKING) `dotenv.set_key` and `dotenv.unset_key` used to follow
      symlinks in some situations. This is no longer the case.  For that
      behavior to be restored in all cases, `follow_symlinks=True` should be
      used.
    - (BREAKING) In the CLI, `set` and `unset` used to follow symlinks in
      some situations. This is no longer the case.
    - (BREAKING) `dotenv.set_key`, `dotenv.unset_key` and the CLI commands
      `set` and `unset` used to reset the file mode of the modified .env
      file to `0o600` in some situations. This is no longer the case: The
      original mode of the file is now preserved. Is the file needed to be
      created or wasn't a regular file, mode `0o600` is used.
    bbc2 authored Mar 1, 2026
    Configuration menu
    Copy the full SHA
    790c5c0 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    eb20252 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    36004e0 View commit details
    Browse the repository at this point in the history
  4. fix typo

    theskumar committed Mar 1, 2026
    Configuration menu
    Copy the full SHA
    dbc3882 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    dc71adb View commit details
    Browse the repository at this point in the history

Commits on Mar 2, 2026

  1. fix: print friendly error for missing command in dotenv run (thesku…

    …mar#606)
    
    Changes for users:
    
    - (BREAKING) `dotenv run` exits with status code 1 instead of 2 if the command
      provided as argument can't be found.
    - `dotenv run` prints a friendly error message instead of a stack trace
      if the command provided as argument can't be found.
    
    Notes:
    
    The existing test case was wrongly testing for that situation: it was
    actually observing a "missing env file" error, not a "command not found
    error". I thus added an appropriate test case for full coverage.
    
    Co-authored-by: Saurabh Kumar <[email protected]>
    bbc2 and theskumar authored Mar 2, 2026
    Configuration menu
    Copy the full SHA
    da0c820 View commit details
    Browse the repository at this point in the history

Commits on Mar 6, 2026

  1. Configuration menu
    Copy the full SHA
    fa4e6a9 View commit details
    Browse the repository at this point in the history

Commits on Apr 19, 2026

  1. Configuration menu
    Copy the full SHA
    68ea2d1 View commit details
    Browse the repository at this point in the history
  2. fix: strip UTF-8 BOM from .env files (theskumar#640)

    * Fix: strip UTF-8 BOM from .env files to prevent silent first-variable loss
    
    When a .env file is saved with a UTF-8 BOM (common with JetBrains IDEs
    on Windows), the BOM character (\ufeff) was prepended to the first
    variable name, making it silently inaccessible via its intended key.
    
    Strip the BOM in Reader.__init__ so all variables are parsed correctly
    regardless of whether the file contains a BOM.
    
    Fixes theskumar#637
    
    Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
    
    * docs: add changelog entry for BOM fix
    
    ---------
    
    Co-authored-by: h1whelan <[email protected]>
    Co-authored-by: Claude Opus 4.6 (1M context) <[email protected]>
    Co-authored-by: Saurabh Kumar <[email protected]>
    4 people authored Apr 19, 2026
    Configuration menu
    Copy the full SHA
    bca6644 View commit details
    Browse the repository at this point in the history
Loading