aboutsummaryrefslogtreecommitdiff
path: root/stddirs.go
diff options
context:
space:
mode:
authorFlu0r1ne <flur01ne@flu0r1ne.net>2021-09-03 00:51:47 -0500
committerFlu0r1ne <flur01ne@flu0r1ne.net>2021-09-03 00:51:47 -0500
commit0e6b7378a564bb51b3a4289059e80fe9e3c6545b (patch)
tree9cde120cfc7a7acea9c685f15601dd41d42bd9f1 /stddirs.go
parent287d029975b7718109f81b480079f375f7d8700a (diff)
downloadplanr-0e6b7378a564bb51b3a4289059e80fe9e3c6545b.tar.xz
planr-0e6b7378a564bb51b3a4289059e80fe9e3c6545b.zip
BUG: Fix decoding when no defaults is present
Diffstat (limited to 'stddirs.go')
-rw-r--r--stddirs.go11
1 files changed, 4 insertions, 7 deletions
diff --git a/stddirs.go b/stddirs.go
index 2385529..e6b510d 100644
--- a/stddirs.go
+++ b/stddirs.go
@@ -21,13 +21,13 @@ import (
// Env overrides
const (
- ENV_CONFIG_DIR="PLANR_PLANR_DIR"
- ENV_SRC_DIR="ENV_SRC_DIR"
+ ENV_CONFIG_DIR="PLANR_CONFIG_DIR"
+ ENV_SRC_DIR="PLANR_SRC_DIR"
ENV_BUILD_DIR="PLANR_BUILD_DIR"
)
// Try these search directories
-var CONFIG_SEARCH_DIRS = [2] string {
+var CONFIG_SEARCH_DIRS = [] string {
"planr",
".planr",
}
@@ -88,7 +88,7 @@ func (c *DirConfig) SetConfigFromTree(cdir string) {
for _, dir := range CONFIG_SEARCH_DIRS {
configDir = filepath.Join(path, dir)
-
+
if directoryExists(configDir) {
return true
}
@@ -157,9 +157,6 @@ func (c DirConfig) CleanBuild() {
log.Fatalf("Cannot build directory %v\n", err)
}
- // if err := os.Remove(build); err != nil {
- // log.Fatalf("Could not remove build directory %v\n", err)
- // }
}
func (c DirConfig) MkBuild() {