Skip to content

Commit e7c0c2a

Browse files
authored
Fix envconf path (#2715)
1 parent 019ad70 commit e7c0c2a

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

temporal-envconfig/src/main/java/io/temporal/envconfig/ClientConfig.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,13 @@ public static ClientConfig getDefaultInstance() {
3232
return new ClientConfig.Builder().build();
3333
}
3434

35-
/** Get the default config file path: $HOME/.config/temporal/temporal.toml */
35+
/** Get the default config file path: $HOME/.config/temporalio/temporal.toml */
3636
private static String getDefaultConfigFilePath() {
3737
String userDir = System.getProperty("user.home");
3838
if (userDir == null || userDir.isEmpty()) {
3939
throw new RuntimeException("failed getting user home directory");
4040
}
41-
return userDir + "/.config/temporal/temporal.toml";
41+
return userDir + "/.config/temporalio/temporal.toml";
4242
}
4343

4444
/**

temporal-envconfig/src/main/java/io/temporal/envconfig/LoadClientConfigOptions.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ public Builder setConfigFileData(byte[] bytes) {
9595
/**
9696
* Override the file path to use to load the TOML file for config. Defaults to
9797
* TEMPORAL_CONFIG_FILE environment variable or if that is unset/empty, defaults to
98-
* [os.UserConfigDir]/temporal/temporal.toml. If ConfigFileData is set, this cannot be set and
98+
* [os.UserConfigDir]/temporalio/temporal.toml. If ConfigFileData is set, this cannot be set and
9999
* no file loading from disk occurs. Ignored if DisableFile is true.
100100
*/
101101
public Builder setConfigFilePath(String configFilePath) {

temporal-envconfig/src/main/java/io/temporal/envconfig/LoadClientConfigProfileOptions.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ public Builder setDisableEnv(boolean disableEnv) {
126126
/**
127127
* Override the file path to use to load the TOML file for config. Defaults to
128128
* TEMPORAL_CONFIG_FILE environment variable or if that is unset/empty, defaults to
129-
* [os.UserConfigDir]/temporal/temporal.toml. If ConfigFileData is set, this cannot be set and
129+
* [os.UserConfigDir]/temporalio/temporal.toml. If ConfigFileData is set, this cannot be set and
130130
* no file loading from disk occurs. Ignored if DisableFile is true.
131131
*/
132132
public Builder setConfigFilePath(String configFilePath) {

0 commit comments

Comments
 (0)