Skip to content

Environment Configuration does not read the correct file path on macOS #2754

Closed

Description

@pvsone

Expected Behavior

Per the documentation, the SDKs should read the toml config file on a mac from $HOME/Library/Application Support/temporalio/temporal.toml. However this path is not being read (the Linux path is being read instead ~/.config/temporalio/temporal.toml)

Actual Behavior

On a mac I expect the SDK to read the Environment Config profile from $HOME/Library/Application Support/temporalio/temporal.toml

Steps to Reproduce the Problem

  1. Create a Profile TOML file on a Mac using the CLI, which writes a file to: $HOME/Library/Application Support/temporalio/temporal.toml
  2. Create a Java program that attempts to read the Profile using the Env Config APIs. An error will be thrown that the profile cannot be found
  3. For fun, copy the profile file from the default, documented location ($HOME/Library/Application Support/temporalio/temporal.toml) to ~/.config/temporalio/temporal.toml. Run the Java program again. The profile will now be successfully found and loaded

Specifications

  • Version: Java SDK 1.32.1
  • Platform: Mac

Activity

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions