only do 'go get -v' when there is a new build to do
Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
parent
ba615e1a21
commit
3afc855f4b
|
@ -39,10 +39,6 @@ func main() {
|
|||
for {
|
||||
shell.Run("git checkout master")
|
||||
shell.Run("git pull --tags")
|
||||
shell.Run("go get -v ...")
|
||||
shell.Run("go get -v -u ...")
|
||||
shell.Run("go get -v -u -t")
|
||||
|
||||
findtags()
|
||||
time.Sleep(time.Second * 60)
|
||||
}
|
||||
|
@ -73,6 +69,7 @@ func build(tag string) *bool {
|
|||
var b bool
|
||||
url := "https://mirrors.wit.com/cloud/control-panel/linux/" + filename + "-v" + tag + ".md5sum"
|
||||
log.Println("\tTRYING URL", url)
|
||||
|
||||
md5sum := shell.Chomp(shell.Wget(url))
|
||||
if (md5sum != "") {
|
||||
log.Println("\tBUILD ALREADY DONE TAG =", tag, "md5sum =", md5sum)
|
||||
|
@ -83,6 +80,11 @@ func build(tag string) *bool {
|
|||
// for {}
|
||||
|
||||
shell.Quiet(false)
|
||||
|
||||
shell.Run("go get -v ...")
|
||||
shell.Run("go get -v -u ...")
|
||||
shell.Run("go get -v -u -t")
|
||||
|
||||
shell.Run("git checkout v" + tag)
|
||||
|
||||
gitref := shell.Run("git rev-list -1 HEAD")
|
||||
|
|
|
@ -1 +0,0 @@
|
|||
74cdf39cbe0ff012b763649902464971bf12ca1a
|
|
@ -0,0 +1 @@
|
|||
ba615e1a2146cf9f8a8c78ffa6786ea9de083e76
|
Loading…
Reference in New Issue