Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
core: rename data dir environment var
This change serves two goals: - Rename the env var to CHAIN_CORE_DATA. - Leave overriding the location to platform-specific tooling. For the second item, the Mac OS X app explicitly sets CHAIN_CORE_DATA to the appropriate location for Mac OS X (as opposed to plain Darwin). Future work: also update the Windows installer. Closes #1014
- Loading branch information
Showing
13 changed files
with
39 additions
and
59 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package core | ||
|
||
import ( | ||
"os" | ||
"path/filepath" | ||
) | ||
|
||
// HomeDirFromEnvironment returns the directory to use | ||
// for reading config and storing variable data. | ||
// It returns $CHAIN_CORE_HOME, | ||
// or, if that is empty, $HOME/.chaincore. | ||
func HomeDirFromEnvironment() string { | ||
if s := os.Getenv("CHAIN_CORE_HOME"); s != "" { | ||
return s | ||
} | ||
return filepath.Join(os.Getenv("HOME"), ".chaincore") | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
|
||
public final class RevId { | ||
public final String Id = "main/rev2985"; | ||
public final String Id = "main/rev2986"; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
package rev | ||
|
||
const ID string = "main/rev2985" | ||
const ID string = "main/rev2986" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
|
||
export const rev_id = "main/rev2985" | ||
export const rev_id = "main/rev2986" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
|
||
module Chain::Rev | ||
ID = "main/rev2985".freeze | ||
ID = "main/rev2986".freeze | ||
end |