]> Cypherpunks.ru repositories - goredo.git/blobdiff - main.go
Correct relative dependency paths
[goredo.git] / main.go
diff --git a/main.go b/main.go
index 8c9c16da1430a761779856688da8382b82a98e18..3a7088d16431492773e78a07781e54ff85eeef19 100644 (file)
--- a/main.go
+++ b/main.go
@@ -40,6 +40,7 @@ import (
 var (
        Cwd       string
        BuildUUID string
+       IsTopRedo bool // is it the top redo instance
 )
 
 func mustSetenv(key, value string) {
@@ -122,6 +123,7 @@ func main() {
                }
        }
        DirPrefix = os.Getenv(EnvDirPrefix)
+       DepCwd = os.Getenv(EnvDepCwd)
 
        if *flagStderrKeep {
                mustSetenv(EnvStderrKeep, "1")
@@ -229,6 +231,7 @@ func main() {
        BuildUUID = os.Getenv(EnvBuildUUID)
        tgtsWasEmpty := len(tgts) == 0
        if BuildUUID == "" {
+               IsTopRedo = true
                raw := new([16]byte)
                if _, err = io.ReadFull(rand.Reader, raw[:]); err != nil {
                        log.Fatalln(err)