summaryrefslogtreecommitdiff
path: root/build.go
diff options
context:
space:
mode:
Diffstat (limited to 'build.go')
-rw-r--r--build.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/build.go b/build.go
index 579d738..327a19e 100644
--- a/build.go
+++ b/build.go
@@ -48,6 +48,14 @@ func (f *Forge) doBuild(repo *gitpb.Repo, userFlags []string, goWhat string) err
return err
}
+ if repo.Exists(".forge") {
+ log.Info("custom build instructions")
+ data, _ := repo.ReadFile(".forge")
+ log.Info(".forge =", string(data))
+ log.Info("todo: do the custom build instructions")
+ return nil
+ }
+
// if not GoPrimitive, autogen each dependent git repo
if repo.GoDepsLen() != 0 {
// build the protobuf files in all protobuf repos