зеркало из https://github.com/mislav/hub.git
Typo in build script to disable update
Also fix a output typo in autoupdate which is never runs
This commit is contained in:
Родитель
137e28a031
Коммит
8d41c3da0e
|
@ -65,7 +65,7 @@ func (updater *Updater) PromptForUpdate() (err error) {
|
||||||
case "always":
|
case "always":
|
||||||
err = updater.updateTo(releaseName, version)
|
err = updater.updateTo(releaseName, version)
|
||||||
default:
|
default:
|
||||||
fmt.Println("There is a newer version of gh available.")
|
fmt.Println("There is a newer version of hub available.")
|
||||||
fmt.Print("Would you like to update? ([Y]es/[N]o/[A]lways/N[e]ver): ")
|
fmt.Print("Would you like to update? ([Y]es/[N]o/[A]lways/N[e]ver): ")
|
||||||
var confirm string
|
var confirm string
|
||||||
fmt.Scan(&confirm)
|
fmt.Scan(&confirm)
|
||||||
|
|
|
@ -97,7 +97,7 @@ class Packer
|
||||||
|
|
||||||
def build_toolchain!
|
def build_toolchain!
|
||||||
puts "Building Go toolchain"
|
puts "Building Go toolchain"
|
||||||
result = system "gox -build-toolchain -os=#{OS.type} -tags=noupdate"
|
result = system "gox -build-toolchain -os=#{OS.type}"
|
||||||
raise "Fail to build Go toolchain" unless result
|
raise "Fail to build Go toolchain" unless result
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -113,7 +113,7 @@ class Packer
|
||||||
|
|
||||||
def build_hub!
|
def build_hub!
|
||||||
puts "Building for #{OS.type}"
|
puts "Building for #{OS.type}"
|
||||||
exec!("script/godep gox -os=#{OS.type} -output=./target/{{.Dir}}_#{version}_{{.OS}}_{{.Arch}}/{{.Dir}}")
|
exec!("script/godep gox -os=#{OS.type} -output=./target/{{.Dir}}_#{version}_{{.OS}}_{{.Arch}}/{{.Dir}} -tags=noupdate")
|
||||||
end
|
end
|
||||||
|
|
||||||
def cp_assets
|
def cp_assets
|
||||||
|
|
Загрузка…
Ссылка в новой задаче