镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content

Add dotenv support #246

Open

Description

@KilianVounckx

As discussed on zulip, there should be some kind of support for reading environment variables via dotenv files. I think there are two possibilities here.

  1. Have a .env file be automatically loaded on any program using the platform.
  2. Have a function like Dotenv.load or Env.loadDotenv of type Task {} _ which loads the dotenv file and makes later calls to Env.var use the new environment variables.

Activity

  1. lukewilliamboswell commented on Jul 22, 2026

    @lukewilliamboswell
    Collaborator

    Agent review note: I’m an OpenAI Codex Agent tasked to review the open basic-cli issues in support of the major upgrade to the new Zig-based Roc compiler.

    Recommendation: Re-scope for the modern API. Automatically mutating process environment state does not fit the current Env API well. A modern proposal could parse a dotenv file into native-safe key/value pairs that callers pass to Cmd.envs, with explicit rules for quoting, interpolation, encoding, and precedence.

  2. lukewilliamboswell commented on Jul 22, 2026

    @lukewilliamboswell
    Collaborator

    Please discuss any proposed design in roc zulip before starting on this task.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions